MDL-22001 fixed hidden bug triggerred by recent fixes in format_string() - credit goes to Myles Carrick , thanks! + fixing sloppy trailing whitespace :-(

This commit is contained in:
Petr Skoda 2010-08-01 10:24:52 +00:00
parent cbc5d1328b
commit 8725605d7a

View file

@ -251,6 +251,7 @@ class webservice_documentation_generator {
protected function display_documentation_html() { protected function display_documentation_html() {
global $PAGE, $OUTPUT, $SITE, $CFG; global $PAGE, $OUTPUT, $SITE, $CFG;
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_url('/webservice/wsdoc'); $PAGE->set_url('/webservice/wsdoc');
$PAGE->set_docs_path(''); $PAGE->set_docs_path('');
$PAGE->set_title($SITE->fullname." ".get_string('wsdocumentation', 'webservice')); $PAGE->set_title($SITE->fullname." ".get_string('wsdocumentation', 'webservice'));
@ -301,6 +302,7 @@ class webservice_documentation_generator {
protected function display_login_page_html($errormessage) { protected function display_login_page_html($errormessage) {
global $PAGE, $OUTPUT, $SITE, $CFG; global $PAGE, $OUTPUT, $SITE, $CFG;
$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));
$PAGE->set_url('/webservice/wsdoc'); $PAGE->set_url('/webservice/wsdoc');
$PAGE->set_docs_path(''); $PAGE->set_docs_path('');
$PAGE->set_title($SITE->fullname." ".get_string('wsdocumentation', 'webservice')); $PAGE->set_title($SITE->fullname." ".get_string('wsdocumentation', 'webservice'));