From 517647646b65f85c14c18d0082d41bcf90eabc31 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sat, 24 Nov 2001 00:33:58 +0000 Subject: 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 --- phpBB/admin/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'phpBB') 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, -- cgit v1.2.1