equal
deleted
inserted
replaced
1305 { |
1305 { |
1306 $cat_current[] = $r; |
1306 $cat_current[] = $r; |
1307 } |
1307 } |
1308 $db->free_result(); |
1308 $db->free_result(); |
1309 $cat_all = Array(); |
1309 $cat_all = Array(); |
1310 for($i=0;$i<sizeof($paths->pages)/2;$i++) |
1310 foreach ( $paths->pages as $i => $_ ) |
1311 { |
1311 { |
1312 if($paths->pages[$i]['namespace']=='Category') $cat_all[] = $paths->pages[$i]; |
1312 if($paths->pages[$i]['namespace']=='Category') $cat_all[] = $paths->pages[$i]; |
1313 } |
1313 } |
1314 |
1314 |
1315 // Make $cat_all an associative array, like $paths->pages |
1315 // Make $cat_all an associative array, like $paths->pages |
1381 |
1381 |
1382 $page_perms = $session->fetch_page_acl($page_id, $namespace); |
1382 $page_perms = $session->fetch_page_acl($page_id, $namespace); |
1383 $page_data =& $paths->pages[$paths->nslist[$namespace].$page_id]; |
1383 $page_data =& $paths->pages[$paths->nslist[$namespace].$page_id]; |
1384 |
1384 |
1385 $cat_all = Array(); |
1385 $cat_all = Array(); |
1386 for($i=0;$i<sizeof($paths->pages)/2;$i++) |
1386 foreach ( $paths->pages as $i => $_ ) |
1387 { |
1387 { |
1388 if($paths->pages[$i]['namespace']=='Category') $cat_all[] = $paths->pages[$i]; |
1388 if($paths->pages[$i]['namespace']=='Category') $cat_all[] = $paths->pages[$i]; |
1389 } |
1389 } |
1390 |
1390 |
1391 // Make $cat_all an associative array, like $paths->pages |
1391 // Make $cat_all an associative array, like $paths->pages |