diff -r d52dfa1f08da -r 323c4cd1aa37 plugins/SpecialPageFuncs.php --- a/plugins/SpecialPageFuncs.php Mon May 04 23:07:00 2009 -0400 +++ b/plugins/SpecialPageFuncs.php Tue May 05 00:10:26 2009 -0400 @@ -313,7 +313,6 @@ global $lang; $template->header(); - $sz = sizeof( $paths->pages ) / 2; echo '
' . $lang->get('pagetools_allpages_blurb') . '
'; $q = $db->sql_query('SELECT COUNT(urlname) FROM '.table_prefix.'pages WHERE visible!=0;'); @@ -321,6 +320,7 @@ $db->_die(); $row = $db->fetchrow_num(); $count = $row[0]; + $sz =& $count; switch($count % 4) { @@ -378,36 +378,30 @@ global $lang; $template->header(); - $sz = sizeof($paths->pages) / 2; - echo '' . $lang->get('pagetools_specialpages_blurb') . '
'; - echo $paths->pages[$i]['name'].' | '; - $j++; - } - else if ( $i >= $sz ) - { - echo ''; - $j++; - } - $i++; - } - echo ' | '; + echo ''; + echo htmlspecialchars($cdata['name']); + echo ''; + echo ' | '; + } + // close up the table if necessary + if ( $i % 2 > 0 ) + { + echo ""; } echo ' |