mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
Locallib.php can be only used by index.php.
This commit is contained in:
parent
cb845f37ae
commit
7dcf558cde
@ -2,6 +2,7 @@
|
||||
|
||||
/// Load libraries
|
||||
require_once '../../config.php';
|
||||
define('USE_AN_LOCALLIB', true);
|
||||
require_once 'locallib.php';
|
||||
|
||||
/// Get site
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
defined('USE_AN_LOCALLIB') or die('Locallib.php can be only used by index.php');
|
||||
|
||||
require_once '../../config.php';
|
||||
require_once $CFG->dirroot.'/enrol/authorize/const.php';
|
||||
require_once $CFG->dirroot.'/enrol/authorize/action.php';
|
||||
|
Loading…
x
Reference in New Issue
Block a user