Fixed some cosmetic bugs in Special:AllPages
authorDan
Tue, 20 Apr 2010 11:38:24 -0400
changeset 1244 ba80cfffb673
parent 1243 db42b7c50e57
child 1245 62763b17be2d
Fixed some cosmetic bugs in Special:AllPages
plugins/SpecialPageFuncs.php
--- a/plugins/SpecialPageFuncs.php	Mon Apr 19 18:07:43 2010 -0400
+++ b/plugins/SpecialPageFuncs.php	Tue Apr 20 11:38:24 2010 -0400
@@ -323,7 +323,7 @@
 			'<div class="tblholder">
  				<table border="0" cellspacing="1" cellpadding="4">
  					<tr>',          // print at start
-			'    ' . $last_cell . '</tr>
+			'		' . $last_cell . '</tr>
  				</table>
  			</div>'             // print at end
  			);
@@ -356,12 +356,12 @@
 		}
 		echo '<td style="width: 50%;" class="' . $cclass . '">';
 		echo '<a href="' . makeUrl($cdata['urlname']) . '">';
-		echo htmlspecialchars($cdata['name']);
+		echo htmlspecialchars($lang->get($cdata['name']));
 		echo '</a>';
 		echo '</td>';
 	}
 	// close up the table if necessary
-	if ( $i % 2 > 0 )
+	if ( $i % 2 == 0 )
 	{
 		echo "<td class=\"$cclass\"></td>";
 	}