mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-05 22:14:59 +02:00
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
This commit is contained in:
parent
bb31a5e009
commit
517647646b
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user