aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/language/language_file_loader.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 15:44:39 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 15:44:39 +0200
commita3d46575c7f520dc9731ed4e9221c636c5c7c31e (patch)
treeaea13a869be9340728719cde8f5511a419a6f1f7 /phpBB/phpbb/language/language_file_loader.php
parentf5dbc3b6f269cb3841c20ad0096fcedb3dac7492 (diff)
parent077051fef56f0d9b504a2593dc84a3d05ef02e18 (diff)
downloadforums-a3d46575c7f520dc9731ed4e9221c636c5c7c31e.tar
forums-a3d46575c7f520dc9731ed4e9221c636c5c7c31e.tar.gz
forums-a3d46575c7f520dc9731ed4e9221c636c5c7c31e.tar.bz2
forums-a3d46575c7f520dc9731ed4e9221c636c5c7c31e.tar.xz
forums-a3d46575c7f520dc9731ed4e9221c636c5c7c31e.zip
Merge pull request #3613 from nickvergessen/ticket/13844
Ticket/13844 Better FAQ language files
Diffstat (limited to 'phpBB/phpbb/language/language_file_loader.php')
-rw-r--r--phpBB/phpbb/language/language_file_loader.php12
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);
- }
}
}