aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}