mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Solving all warnings from moodle-plugin-ci check.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user