mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Fix #146
This commit is contained in:
parent
d33646e88d
commit
d91e760d30
@ -275,7 +275,7 @@
|
|||||||
$config['highscore'] = array(
|
$config['highscore'] = array(
|
||||||
'rows' => 100,
|
'rows' => 100,
|
||||||
'rowsPerPage' => 20,
|
'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)
|
// ONLY FOR TFS 0.2 (TFS 0.3/4 users don't need to care about this, as its fully loaded from db)
|
||||||
|
@ -64,7 +64,7 @@ if ($scores) {
|
|||||||
</select>
|
</select>
|
||||||
<select name="page">
|
<select name="page">
|
||||||
<?php
|
<?php
|
||||||
$pages = (int)($highscore['rows'] / $highscore['rowsPerPage']) + 1;
|
$pages = (int)($highscore['rows'] / $highscore['rowsPerPage']);
|
||||||
for ($i = 0; $i < $pages; $i++) {
|
for ($i = 0; $i < $pages; $i++) {
|
||||||
$x = $i + 1;
|
$x = $i + 1;
|
||||||
if ($x == $page) echo "<option value='".$x."' selected>Page: ".$x."</option>";
|
if ($x == $page) echo "<option value='".$x."' selected>Page: ".$x."</option>";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user