aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggPlugin.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 02:02:22 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 02:02:22 +0000
commite73c0fb18cb2d0bb74fecadeaddcda0ca7d22b92 (patch)
tree1c685d83373ba2b7809fcb91bbf2af33cd07cd3f /engine/classes/ElggPlugin.php
parentc7a2297071f81e121df0d8aa66ccdb70f8b7a989 (diff)
downloadelgg-e73c0fb18cb2d0bb74fecadeaddcda0ca7d22b92.tar.gz
elgg-e73c0fb18cb2d0bb74fecadeaddcda0ca7d22b92.tar.bz2
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
Diffstat (limited to 'engine/classes/ElggPlugin.php')
-rw-r--r--engine/classes/ElggPlugin.php4
1 files changed, 4 insertions, 0 deletions
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',