mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-11762 - Navigation not set up properly for resources - $this->navlinks was not being initialised in the base class. Merged from MOODLE_19_STABLE.
This commit is contained in:
parent
634d20d380
commit
bddd9f6f40
@ -95,6 +95,7 @@ class resource_base {
|
||||
function resource_base($cmid=0) {
|
||||
|
||||
global $CFG, $COURSE;
|
||||
$this->navlinks = array();
|
||||
|
||||
if ($cmid) {
|
||||
if (! $this->cm = get_coursemodule_from_id('resource', $cmid)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user