From 7dcf558cde760f2e433f2968b4d46a9507050bb7 Mon Sep 17 00:00:00 2001 From: ethem Date: Mon, 24 Apr 2006 17:15:13 +0000 Subject: [PATCH] Locallib.php can be only used by index.php. --- enrol/authorize/index.php | 1 + enrol/authorize/locallib.php | 2 ++ 2 files changed, 3 insertions(+) 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'; -- 2.39.5