aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggPlugin.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-04 22:39:04 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-04 22:39:04 +0000
commit72efb16917eb7c8f4e86b4fdc01eb86e83d5568d (patch)
tree695bf7efdf89c3c0868806894cdf643ff6d3aa16 /engine/classes/ElggPlugin.php
parent595ebfe0b3771df92055334bfe5da8b29c840c3b (diff)
downloadelgg-72efb16917eb7c8f4e86b4fdc01eb86e83d5568d.tar.gz
elgg-72efb16917eb7c8f4e86b4fdc01eb86e83d5568d.tar.bz2
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
Diffstat (limited to 'engine/classes/ElggPlugin.php')
-rw-r--r--engine/classes/ElggPlugin.php4
1 files changed, 2 insertions, 2 deletions
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;
}