mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 23:59:41 +02:00
MDL-60198 webservice: Add missing MOODLE_INTERNAL checks
This commit is contained in:
parent
91cbdda6af
commit
e71687baf9
11 changed files with 20 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace tool_mobile;
|
namespace tool_mobile;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
namespace tool_templatelibrary;
|
namespace tool_templatelibrary;
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
|
|
||||||
class core_cohort_external extends external_api {
|
class core_cohort_external extends external_api {
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* @since Moodle 2.9
|
* @since Moodle 2.9
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
require_once("$CFG->dirroot/comment/lib.php");
|
require_once("$CFG->dirroot/comment/lib.php");
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
require_once("$CFG->libdir/filelib.php");
|
require_once("$CFG->libdir/filelib.php");
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
require_once($CFG->dirroot . "/message/lib.php");
|
require_once($CFG->dirroot . "/message/lib.php");
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
require_once($CFG->dirroot . "/notes/lib.php");
|
require_once($CFG->dirroot . "/notes/lib.php");
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
require_once($CFG->dirroot . '/question/engine/lib.php');
|
require_once($CFG->dirroot . '/question/engine/lib.php');
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
require_once("$CFG->dirroot/webservice/externallib.php");
|
require_once("$CFG->dirroot/webservice/externallib.php");
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
defined('MOODLE_INTERNAL') || die();
|
||||||
|
|
||||||
require_once("$CFG->libdir/externallib.php");
|
require_once("$CFG->libdir/externallib.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue