aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggPlugin.php2
-rw-r--r--engine/classes/ElggPluginPackage.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index b6cb792fb..5782ac4dd 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -50,7 +50,7 @@ class ElggPlugin extends ElggObject {
parent::__construct($plugin);
$this->path = get_config('plugins_path') . $this->getID();
} else {
- $plugin_path = elgg_get_plugin_path();
+ $plugin_path = elgg_get_plugins_path();
// not a full path, so assume an id
// use the default path
diff --git a/engine/classes/ElggPluginPackage.php b/engine/classes/ElggPluginPackage.php
index 74c8bd020..d7392132c 100644
--- a/engine/classes/ElggPluginPackage.php
+++ b/engine/classes/ElggPluginPackage.php
@@ -93,7 +93,7 @@ class ElggPluginPackage {
* @throws PluginException
*/
public function __construct($plugin, $validate = true) {
- $plugin_path = elgg_get_plugin_path();
+ $plugin_path = elgg_get_plugins_path();
// @todo wanted to avoid another is_dir() call here.
// should do some profiling to see how much it affects
if (strpos($plugin, $plugin_path) === 0 || is_dir($plugin)) {