From: <za...@us...> - 2003-07-26 21:09:50
|
Update of /cvsroot/tikiwiki/tiki/lib/debug In directory sc8-pr-cvs1:/tmp/cvs-serv11712 Modified Files: Tag: release_eta_carinea_rc1 debug-command_perm.php debug-command_slist.php Log Message: Small fixes Index: debug-command_perm.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/debug/debug-command_perm.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -d -r1.1.2.2 -r1.1.2.3 --- debug-command_perm.php 26 Jul 2003 21:08:57 -0000 1.1.2.2 +++ debug-command_perm.php 26 Jul 2003 21:09:47 -0000 1.1.2.3 @@ -50,7 +50,6 @@ $pd = $userlib->get_permissions(); $descriptions = array(); foreach ($pd['data'] as $p) $descriptions[$p['permName']] = $p['permDesc']; - var_dump($descriptions); // convert to vector of names, filter permissions only $perms = array(); $len = strlen($mask); Index: debug-command_slist.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/debug/debug-command_slist.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -d -r1.1.2.2 -r1.1.2.3 --- debug-command_slist.php 18 Jul 2003 18:50:30 -0000 1.1.2.2 +++ debug-command_slist.php 26 Jul 2003 21:09:48 -0000 1.1.2.3 @@ -49,7 +49,7 @@ $len = strlen($mask); foreach ($tpl_vars as $key => $val) if (!$len || $len && preg_match('/'.$mask.'/', $key)) - $vars[] = $key; + $vars[] = $key; sort($vars); // $result = '<table border=0>'; @@ -59,13 +59,13 @@ { if (($idx % 3) == 0) { - $result .= $row.'</tr>'; - $row = '<tr><td>$'.$var.'</td>'; - $idx = 1; + $result .= $row.'</tr>'; + $row = '<tr><td>$'.$var.'</td>'; + $idx = 1; } else { - $row .= '<td>$'.$var.'</td>'; + $row .= '<td>$'.$var.'</td>'; $idx++; } } |