Fix check MOODLE_INTERNAL
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
f2f22e9817
commit
62c0ddbcd2
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
namespace tool_apisiteadmins\event;
|
namespace tool_apisiteadmins\event;
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines how to work with events.
|
* Defines how to work with events.
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
namespace tool_apisiteadmins\event;
|
namespace tool_apisiteadmins\event;
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines how to work with events.
|
* Defines how to work with events.
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
namespace tool_apisiteadmins\event;
|
namespace tool_apisiteadmins\event;
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines how to work with events.
|
* Defines how to work with events.
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* @package tool_apisiteadmins
|
* @package tool_apisiteadmins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
$functions = array(
|
$functions = array(
|
||||||
"tool_apisiteadmins_add_to_administrators" => array(
|
"tool_apisiteadmins_add_to_administrators" => array(
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* @package tool_apisiteadmins
|
* @package tool_apisiteadmins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once(__DIR__ . "/lib.php");
|
require_once(__DIR__ . "/lib.php");
|
||||||
|
|
||||||
|
2
lib.php
2
lib.php
@ -22,7 +22,7 @@
|
|||||||
* @package tool_apisiteadmins
|
* @package tool_apisiteadmins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Functions for working with the list of administrators.
|
* Functions for working with the list of administrators.
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* @package tool_apisiteadmins
|
* @package tool_apisiteadmins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* @package tool_apisiteadmins
|
* @package tool_apisiteadmins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
* @package tool_apisiteadmins
|
* @package tool_apisiteadmins
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined("MOODLE_INTERNAL") || die();
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
$plugin->component = "tool_apisiteadmins";
|
$plugin->component = "tool_apisiteadmins";
|
||||||
$plugin->maturity = MATURITY_STABLE;
|
$plugin->maturity = MATURITY_STABLE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user