commit 54756f394d1a5033d411285be9917c66c249b618 Author: Myles Carrick Date: Sun Aug 1 20:10:03 2010 +1000 webservice: MDL-22001 set ->context for web service documentation diff --git a/webservice/wsdoc.php b/webservice/wsdoc.php index 6e5853f..6264b33 100644 --- a/webservice/wsdoc.php +++ b/webservice/wsdoc.php @@ -251,6 +251,7 @@ class webservice_documentation_generator { protected function display_documentation_html() { global $PAGE, $OUTPUT, $SITE, $CFG; + $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM)); $PAGE->set_url('/webservice/wsdoc'); $PAGE->set_docs_path(''); $PAGE->set_title($SITE->fullname." ".get_string('wsdocumentation', 'webservice')); @@ -301,6 +302,7 @@ class webservice_documentation_generator { protected function display_login_page_html($errormessage) { global $PAGE, $OUTPUT, $SITE, $CFG; + $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM)); $PAGE->set_url('/webservice/wsdoc'); $PAGE->set_docs_path(''); $PAGE->set_title($SITE->fullname." ".get_string('wsdocumentation', 'webservice'));