Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: 1.6 theme upgrade.

Talk:1.6 theme upgrade: Difference between revisions

From MoodleDocs
(moodledocslink in footer)
Line 1: Line 1:
Brilliant guys, thanks!  - Martin D
Brilliant guys, thanks!  - Martin D
== moodledocslink in footer ==
Starting with Moodle 1.6 it is possible to make a link to Moodle Docs available (to admin or teacher, not to student) by adding the following to footer.html:
page_doc_link(get_string("moodledocslink"))
However, if a theme compatible with Moodle 1.5 and 1.6 has a call to page_doc_link(get_string("moodledocslink")) in its footer.html, this will trigger an error message when the theme is used under version 1.5.
Fatal error: Call to undefined function page_doc_link() in ...
Is there a way to leave this function call in footer.html without triggering the error message?
Joseph

Revision as of 12:31, 22 May 2006

Brilliant guys, thanks! - Martin D

moodledocslink in footer

Starting with Moodle 1.6 it is possible to make a link to Moodle Docs available (to admin or teacher, not to student) by adding the following to footer.html:

page_doc_link(get_string("moodledocslink"))

However, if a theme compatible with Moodle 1.5 and 1.6 has a call to page_doc_link(get_string("moodledocslink")) in its footer.html, this will trigger an error message when the theme is used under version 1.5.

Fatal error: Call to undefined function page_doc_link() in ...

Is there a way to leave this function call in footer.html without triggering the error message?

Joseph