From 72efb16917eb7c8f4e86b4fdc01eb86e83d5568d Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 4 Feb 2011 22:39:04 +0000 Subject: 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 --- engine/classes/ElggPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/classes') 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; } -- cgit v1.2.3