Issue #46 - Fixed moodle-plugin-ci warnings.

This commit is contained in:
Daniel Thee Roperto
2016-09-26 11:17:57 +10:00
parent 909b4bbcd3
commit b79a70d122
3 changed files with 8 additions and 10 deletions

View File

@@ -20,7 +20,6 @@ use coding_exception;
use core\session\manager;
defined('MOODLE_INTERNAL') || die();
require_once($CFG->libdir.'/clilib.php');
/**
* Outage CLI base class.
@@ -48,6 +47,8 @@ abstract class clibase {
*/
public function __construct(array $options = null) {
global $CFG;
require_once($CFG->libdir.'/clilib.php');
if (!is_enabled_auth('outage')) {
throw new cli_exception(get_string('cliplugindisabled', 'auth_outage'), cli_exception::ERROR_PLUGIN_DISABLED);
}