This commit is contained in:
Stefan Brannfjell 2014-08-30 15:32:25 +02:00
parent d33646e88d
commit d91e760d30
2 changed files with 2 additions and 2 deletions

View File

@ -275,7 +275,7 @@
$config['highscore'] = array(
'rows' => 100,
'rowsPerPage' => 20,
'ignoreGroupId' => 2, // Ignore group id higher than this (staff)
'ignoreGroupId' => 2, // Ignore this and higher group ids (staff)
);
// ONLY FOR TFS 0.2 (TFS 0.3/4 users don't need to care about this, as its fully loaded from db)

View File

@ -64,7 +64,7 @@ if ($scores) {
</select>
<select name="page">
<?php
$pages = (int)($highscore['rows'] / $highscore['rowsPerPage']) + 1;
$pages = (int)($highscore['rows'] / $highscore['rowsPerPage']);
for ($i = 0; $i < $pages; $i++) {
$x = $i + 1;
if ($x == $page) echo "<option value='".$x."' selected>Page: ".$x."</option>";