diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-23 01:01:01 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-11-23 01:01:01 +0000 |
commit | 6f02536adf41656de92b5f4d8a01339869229b9c (patch) | |
tree | 21838af90a36e7f564c7c207f462fd8ebfffdc47 /phpBB/admin | |
parent | 45a4be47fb2c74044cac6bfeecd2631c7ffb5f2f (diff) | |
download | forums-6f02536adf41656de92b5f4d8a01339869229b9c.tar forums-6f02536adf41656de92b5f4d8a01339869229b9c.tar.gz forums-6f02536adf41656de92b5f4d8a01339869229b9c.tar.bz2 forums-6f02536adf41656de92b5f4d8a01339869229b9c.tar.xz forums-6f02536adf41656de92b5f4d8a01339869229b9c.zip |
Module and module function names now pulled from lang file
git-svn-id: file:///svn/phpbb/trunk@1422 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin')
-rw-r--r-- | phpBB/admin/index.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/admin/index.php b/phpBB/admin/index.php index 4f739e431c..06a9b5b0db 100644 --- a/phpBB/admin/index.php +++ b/phpBB/admin/index.php @@ -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, |