From: cash Date: Sat, 22 Jan 2011 02:02:22 +0000 (+0000) Subject: fixed backward compatibility issue with $CONFIG in plugins' start.php X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e73c0fb18cb2d0bb74fecadeaddcda0ca7d22b92;p=lorea%2Felgg.git 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 --- 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',