|
From: Paul S. O. <ps...@us...> - 2001-11-23 01:01:03
|
Update of /cvsroot/phpbb/phpBB2/admin
In directory usw-pr-cvs1:/tmp/cvs-serv13590/admin
Modified Files:
index.php
Log Message:
Module and module function names now pulled from lang file
Index: index.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/admin/index.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** index.php 2001/11/21 16:54:13 1.26
--- index.php 2001/11/23 01:01:01 1.27
***************
*** 25,28 ****
--- 25,29 ----
//
$phpbb_root_dir = "./../";
+
$no_page_header = TRUE;
require('pagestart.inc');
***************
*** 63,72 ****
--- 64,79 ----
);
+ 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) )
***************
*** 75,79 ****
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
! $action = preg_replace("'_'", " ", $action);
$template->assign_block_vars("catrow.modulerow", array(
--- 82,86 ----
$row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];
! $action = $lang[$action];
$template->assign_block_vars("catrow.modulerow", array(
|