aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_module.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-03-02 01:05:36 +0100
committerNils Adermann <naderman@naderman.de>2010-03-02 01:05:36 +0100
commit1ceddd9eeccde56ab307631a16e40b943eac883a (patch)
treed1045042f004c0d551658e8192b75965139f3707 /phpBB/includes/functions_module.php
parent0e0c8d78199cfa2dd56a62266df33655c93367ff (diff)
parentaadda939732ee163c3babedf4afcd914af12a2cc (diff)
downloadforums-1ceddd9eeccde56ab307631a16e40b943eac883a.tar
forums-1ceddd9eeccde56ab307631a16e40b943eac883a.tar.gz
forums-1ceddd9eeccde56ab307631a16e40b943eac883a.tar.bz2
forums-1ceddd9eeccde56ab307631a16e40b943eac883a.tar.xz
forums-1ceddd9eeccde56ab307631a16e40b943eac883a.zip
Merge commit 'release-3.0-RC3'
Diffstat (limited to 'phpBB/includes/functions_module.php')
-rw-r--r--phpBB/includes/functions_module.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index bbb44d4b3d..1010de643b 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -123,6 +123,22 @@ class p_master
// Re-index (this is needed, else we are not able to array_slice later)
$this->module_cache['modules'] = array_merge($this->module_cache['modules']);
+ // Include MOD _info files for populating language entries within the menus
+ if (file_exists($user->lang_path . 'mods'))
+ {
+ $add_files = array();
+
+ foreach (glob($user->lang_path . 'mods/info_' . strtolower($this->p_class) . '_*.' . $phpEx, GLOB_NOSORT) as $file)
+ {
+ $add_files[] = 'mods/' . substr(basename($file), 0, -(strlen($phpEx) + 1));
+ }
+
+ if (sizeof($add_files))
+ {
+ $user->add_lang($add_files);
+ }
+ }
+
// Now build the module array, but exclude completely empty categories...
$right_id = false;
$names = array();