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

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

No files matched your search

+2 -1
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);
}