fixed missing global causing regression

This commit is contained in:
Petr Skoda 2010-09-17 08:05:35 +00:00
parent 6e6e3881fe
commit bd348bdaa4

View file

@ -346,6 +346,7 @@ class moodle_page {
* @return string e.g. 'my-index' or 'mod-quiz-attempt'.
*/
protected function magic_get_pagetype() {
global $CFG;
if (is_null($this->_pagetype) || isset($CFG->pagepath)) {
$this->initialise_default_pagetype();
}