aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggPlugin.php
diff options
context:
space:
mode:
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',