aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/extension/manager.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/extension/manager.php')
-rw-r--r--phpBB/includes/extension/manager.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/extension/manager.php b/phpBB/includes/extension/manager.php
index ef714638c3..0b3189df96 100644
--- a/phpBB/includes/extension/manager.php
+++ b/phpBB/includes/extension/manager.php
@@ -89,11 +89,12 @@ class phpbb_extension_manager
* Generates the path to an extension
*
* @param string $name The name of the extension
+ * @param bool $phpbb_relative Whether the path should be relative to phpbb root
* @return string Path to an extension
*/
- public function get_extension_path($name)
+ public function get_extension_path($name, $phpbb_relative = false)
{
- return 'ext/' . basename($name) . '/';
+ return (($phpbb_relative) ? $this->phpbb_root_path : '') . 'ext/' . basename($name) . '/';
}
/**