1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[feature/extension-manager] Support for loading language files from extensions

The referenced extension needs to be explicitly specified in an add_lang_ext()
call.

PHPBB3-10323
This commit is contained in:
Nils Adermann
2011-10-14 00:44:48 +02:00
parent 724f40f0f4
commit 639e3b9f17
4 changed files with 76 additions and 18 deletions

View File

@@ -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) . '/';
}
/**