Merge branch 'pagelib_single' of git://github.com/marxjohnson/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2011-06-29 21:00:06 +02:00
+3 -1
View File
@@ -340,7 +340,9 @@ class moodle_page {
// cli scripts work in system context, do not annoy devs with debug info
// very few scripts do not use cookies, we can safely use system as default context there
} else {
debugging('Coding problem: this page does not set $PAGE->context properly.');
debugging('Coding problem: $PAGE->context was not set. You may have forgotten '
.'to call require_login() or $PAGE->set_context(). The page may not display '
.'correctly as a result');
}
$this->_context = get_context_instance(CONTEXT_SYSTEM);
}