1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Module and module function names now pulled from lang file

git-svn-id: file:///svn/phpbb/trunk@1422 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2001-11-23 01:01:01 +00:00
parent 45a4be47fb
commit 6f02536adf
2 changed files with 35 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
// Load default header
//
$phpbb_root_dir = "./../";
$no_page_header = TRUE;
require('pagestart.inc');
@@ -62,19 +63,25 @@ if( $HTTP_GET_VARS['pane'] == 'left' )
"L_PREVIEW_FORUM" => $lang['Preview_forum'])
);
ksort($module);
while( list($cat, $action_array) = each($module) )
{
$cat = $lang[$cat];
$template->assign_block_vars("catrow", array(
"ADMIN_CATEGORY" => $cat)
);
ksort($action_array);
$row_count = 0;
while( list($action, $file) = each($action_array) )
{
$row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
$action = preg_replace("'_'", " ", $action);
$action = $lang[$action];
$template->assign_block_vars("catrow.modulerow", array(
"ROW_COLOR" => "#" . $row_color,