diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-08-23 17:20:55 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-08-23 17:20:55 +0000 |
commit | d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1 (patch) | |
tree | 668d08c9850973ec92419bf8f2cb23d719a4dce5 /phpBB/includes/functions_module.php | |
parent | 6c763cd8b65c1b63d57fb0f176d2c98a44076df1 (diff) | |
download | forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar.gz forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar.bz2 forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.tar.xz forums-d7fa3f83ceb0f05a6295ea4d21ef9a81bfb378f1.zip |
The same way we allow defining a custom template/style path we now allow this for languages too.
This will allow applications to define their own language folder for certain parts for example.
Callable by $user->set_custom_lang_path({new_path})
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8782 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r-- | phpBB/includes/functions_module.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index f4ee454033..3f1c6b39e2 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -818,11 +818,11 @@ class p_master { global $user, $phpEx; - if (file_exists($user->lang_path . 'mods')) + if (file_exists($user->lang_path . $user->lang_name . '/mods')) { $add_files = array(); - $dir = @opendir($user->lang_path . 'mods'); + $dir = @opendir($user->lang_path . $user->lang_name . '/mods'); if ($dir) { |