aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggPlugin.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index eac98da57..2fe29d175 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -114,7 +114,7 @@ class ElggPlugin extends ElggObject {
}
- // Plugin ID
+ // Plugin ID and path
/**
* Returns the ID (dir name) of this plugin
@@ -125,6 +125,15 @@ class ElggPlugin extends ElggObject {
return $this->title;
}
+ /**
+ * Returns the plugin's full path with trailing slash.
+ *
+ * @return string
+ */
+ public function getPath() {
+ return $this->path;
+ }
+
/**
* Sets the location of this plugin.