mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-17 05:48:43 +02:00
Issue #9 - Hooks installed, getting current outage implemented, missing adding information to the UI.
This commit is contained in:
9
lib.php
9
lib.php
@@ -29,7 +29,14 @@ function auth_outage_extend_navigation_user() {
|
||||
}
|
||||
|
||||
function auth_outage_extend_navigation($data) {
|
||||
// Never called?
|
||||
global $CFG;
|
||||
|
||||
// FIXME if function is not used, remove it completely.
|
||||
if ($CFG->debugdisplay) {
|
||||
var_dump($data);
|
||||
throw new \Exception("Check outage/lib.php");
|
||||
}
|
||||
|
||||
\auth_outage\outagelib::initialize();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user