mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
fixed missing global causing regression
This commit is contained in:
parent
6e6e3881fe
commit
bd348bdaa4
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue