mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Simplified code to check if enabled. Issue #16
This commit is contained in:
@@ -24,11 +24,7 @@
|
||||
*/
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
// Check if plugin is enabled, if not do not create menu entries.
|
||||
$enabled = core_plugin_manager::instance()->get_enabled_plugins('auth');
|
||||
$enabled = array_key_exists('outage', $enabled);
|
||||
|
||||
if ($hassiteconfig && $enabled) {
|
||||
if ($hassiteconfig && is_enabled_auth('outage')) {
|
||||
// Configure default settings page.
|
||||
$settings->visiblename = get_string('menudefaults', 'auth_outage');
|
||||
$settings->add(
|
||||
|
||||
Reference in New Issue
Block a user