Solving all warnings from moodle-plugin-ci check.

This commit is contained in:
Daniel Thee Roperto
2016-09-08 11:13:46 +10:00
parent 2a120f0ebe
commit efee27af40
3 changed files with 44 additions and 13 deletions

View File

@@ -57,7 +57,6 @@ class outagelib {
*/
public static function inject() {
global $CFG;
global $PAGE;
// Many hooks can call it, execute only once.
if (self::$initialized) {
@@ -69,8 +68,6 @@ class outagelib {
return;
}
// FIXME Code below is raising error at http://moodle.test/my/ for example.
// $PAGE->add_body_class('auth_outage_active');
$CFG->additionalhtmltopofbody = self::get_renderer()->renderbar($active)
. $CFG->additionalhtmltopofbody;
}