]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed typo that caused ElggPlugin->path not to be correctly set when loading from...
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 4 Feb 2011 22:39:04 +0000 (22:39 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 4 Feb 2011 22:39:04 +0000 (22:39 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8020 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggPlugin.php

index 11b57e8d0a14c5102600fa73a7fdca9f3cba815b..1b9be3ec1d6fd2fca4cd29f377443ec4c9c1bd73 100644 (file)
@@ -48,13 +48,13 @@ class ElggPlugin extends ElggObject {
                // @todo plugins w/id 12345
                if (is_numeric($plugin) || is_object($plugin)) {
                        parent::__construct($plugin);
-                       $this->path = get_config('plugins_path') . $this->getID();
+                       $this->path = elgg_get_plugins_path() . $this->getID();
                } else {
                        $plugin_path = elgg_get_plugins_path();
 
                        // not a full path, so assume an id
                        // use the default path
-                       if (!strpos($plugin, $plugin_path) === 0) {
+                       if (strpos($plugin, $plugin_path) !== 0) {
                                $plugin = $plugin_path . $plugin;
                        }