public function __construct(moodle_page $page, $target) { parent::__construct($page, $target); static $theme; if (empty($theme)) { $theme = theme_config::load('essential'); } $this->enablecategoryicon = !empty($theme->settings->enablecategoryicon) ? $theme->settings->enablecategoryicon : false; }
/** * Override the constructor so that we can initialise the string cache * * @param moodle_page $page * @param string $target */ public function __construct(moodle_page $page, $target) { $this->strings = new stdClass(); parent::__construct($page, $target); //add_modchoosertoggle(); }