From: brettp Date: Fri, 4 Feb 2011 22:39:04 +0000 (+0000) Subject: Fixed typo that caused ElggPlugin->path not to be correctly set when loading from... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=72efb16917eb7c8f4e86b4fdc01eb86e83d5568d;p=lorea%2Felgg.git Fixed typo that caused ElggPlugin->path not to be correctly set when loading from a plugin id. git-svn-id: http://code.elgg.org/elgg/trunk@8020 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php index 11b57e8d0..1b9be3ec1 100644 --- a/engine/classes/ElggPlugin.php +++ b/engine/classes/ElggPlugin.php @@ -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; }