]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed backward compatibility issue with $CONFIG in plugins' start.php
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 22 Jan 2011 02:02:22 +0000 (02:02 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 22 Jan 2011 02:02:22 +0000 (02:02 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7893 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggPlugin.php

index 142ccdf9858f263b11f1e6e1adb9c5d7e29b436e..6581df98e05c82545ce600be23046c4e2eccd036 100644 (file)
@@ -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',