From e73c0fb18cb2d0bb74fecadeaddcda0ca7d22b92 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 22 Jan 2011 02:02:22 +0000 Subject: fixed backward compatibility issue with $CONFIG in plugins' start.php git-svn-id: http://code.elgg.org/elgg/trunk@7893 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/classes/ElggPlugin.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine/classes/ElggPlugin.php') diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php index 142ccdf98..6581df98e 100644 --- a/engine/classes/ElggPlugin.php +++ b/engine/classes/ElggPlugin.php @@ -638,6 +638,10 @@ class ElggPlugin extends ElggObject { * @return true */ protected function includeStart() { + // This needs to be here to be backwards compatible for 1.0-1.7. + // They expect the global config object to be available in start.php. + global $CONFIG; + $start = "$this->path/start.php"; if (!include($start)) { $msg = elgg_echo('ElggPlugin:Exception:CannotIncludeStart', -- cgit v1.2.3