From: ethem Date: Mon, 24 Apr 2006 17:15:13 +0000 (+0000) Subject: Locallib.php can be only used by index.php. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7dcf558cde760f2e433f2968b4d46a9507050bb7;p=moodle.git Locallib.php can be only used by index.php. --- diff --git a/enrol/authorize/index.php b/enrol/authorize/index.php index 857182d1c7..0ce5f0ae7d 100644 --- a/enrol/authorize/index.php +++ b/enrol/authorize/index.php @@ -2,6 +2,7 @@ /// Load libraries require_once '../../config.php'; + define('USE_AN_LOCALLIB', true); require_once 'locallib.php'; /// Get site diff --git a/enrol/authorize/locallib.php b/enrol/authorize/locallib.php index a596125cf8..163850042e 100644 --- a/enrol/authorize/locallib.php +++ b/enrol/authorize/locallib.php @@ -1,5 +1,7 @@ dirroot.'/enrol/authorize/const.php'; require_once $CFG->dirroot.'/enrol/authorize/action.php';