diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2015-05-17 21:18:17 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2015-05-17 21:18:17 +0200 |
commit | 8ce0a64a16aa9d1b8edcef684c528cf44bc39cc6 (patch) | |
tree | 83e50ff0d04a8e974013d646280f6946f8dee478 /phpBB/phpbb/language/language_file_loader.php | |
parent | 80be642a0b77d400dadce7a8a30c50d32c27bf1f (diff) | |
download | forums-8ce0a64a16aa9d1b8edcef684c528cf44bc39cc6.tar forums-8ce0a64a16aa9d1b8edcef684c528cf44bc39cc6.tar.gz forums-8ce0a64a16aa9d1b8edcef684c528cf44bc39cc6.tar.bz2 forums-8ce0a64a16aa9d1b8edcef684c528cf44bc39cc6.tar.xz forums-8ce0a64a16aa9d1b8edcef684c528cf44bc39cc6.zip |
[ticket/13844] Remove hacky code for the help array
PHPBB3-13844
Diffstat (limited to 'phpBB/phpbb/language/language_file_loader.php')
-rw-r--r-- | phpBB/phpbb/language/language_file_loader.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/phpBB/phpbb/language/language_file_loader.php b/phpBB/phpbb/language/language_file_loader.php index 510a29279a..9862cfc3aa 100644 --- a/phpBB/phpbb/language/language_file_loader.php +++ b/phpBB/phpbb/language/language_file_loader.php @@ -154,10 +154,12 @@ class language_file_loader * * @return string Relative path to language file * - * @throws \phpbb\language\exception\language_file_not_exists When the path to the file cannot be resolved + * @throws \phpbb\language\exception\language_file_not_found When the path to the file cannot be resolved */ protected function get_language_file_path($path, $filename, $locales) { + $language_file_path = $filename; + // Language fallback logic foreach ($locales as $locale) { @@ -191,9 +193,6 @@ class language_file_loader */ protected function load_language_file($path, &$lang) { - // BC code for language files with help - $help = array(); - // Do not suppress error if in DEBUG mode if (defined('DEBUG')) { @@ -203,10 +202,5 @@ class language_file_loader { @include $path; } - - if (!empty($help)) - { - $lang['__help'] = array_merge($lang['__help'], $help); - } } } |