diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-24 00:33:58 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-24 00:33:58 +0000 |
commit | 517647646b65f85c14c18d0082d41bcf90eabc31 (patch) | |
tree | 5a9c0abe37800eea2e88f0952f3ae526ed210a88 /phpBB | |
parent | bb31a5e0094892a150fcb2a68a09594edb5b192d (diff) | |
download | forums-517647646b65f85c14c18d0082d41bcf90eabc31.tar forums-517647646b65f85c14c18d0082d41bcf90eabc31.tar.gz forums-517647646b65f85c14c18d0082d41bcf90eabc31.tar.bz2 forums-517647646b65f85c14c18d0082d41bcf90eabc31.tar.xz forums-517647646b65f85c14c18d0082d41bcf90eabc31.zip |
Cope with modules which don't have appropriate names set in the lang_admin file, output names to left pane like old way
git-svn-id: file:///svn/phpbb/trunk@1431 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/admin/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index 06a9b5b0db..7efc277271 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -67,7 +67,7 @@ if( $HTTP_GET_VARS['pane'] == 'left' ) while( list($cat, $action_array) = each($module) ) { - $cat = $lang[$cat]; + $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat); $template->assign_block_vars("catrow", array( "ADMIN_CATEGORY" => $cat) @@ -81,7 +81,7 @@ if( $HTTP_GET_VARS['pane'] == 'left' ) $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2']; $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2']; - $action = $lang[$action]; + $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action); $template->assign_block_vars("catrow.modulerow", array( "ROW_COLOR" => "#" . $row_color, |