fix: reports pagination stays on subsection, if one is selected

This commit is contained in:
Martin Ambrus
2017-10-22 00:13:08 +02:00
parent 680cb209f4
commit e3b6bbeb70
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ $noticeClass = array("Scout Report","Won as attacker without losses","Won as att
echo "«»";
}
else if (!isset($_GET['s']) && count($message->noticearray) > 10) {
echo "&laquo;<a href=\"?s=10&o=0\">&raquo;</a>";
echo "&laquo;<a href=\"?".(!empty($_GET['t']) ? 't='.$_GET['t'].'&amp;' : '')."s=10&amp;o=0\">&raquo;</a>";
}
else if(isset($_GET['s']) && count($message->noticearray) > $_GET['s']) {
if(count($message->noticearray) > ($_GET['s']+10) && $_GET['s']-10 < count($message->noticearray) && $_GET['s'] != 0) {
-1
View File
@@ -7,7 +7,6 @@
- allow to redirect Support messages to admin's nickname (for when there's only a single admin and doesn't like switching between Support and themselves)
- disallow Support to play (single cookie for Admin and the game means support gets no village and lots of warnings when they switch to game now)
- resetting res bonus in admin actually says that bonus was given after OK is pressed
- pagination in attacks goes to "All" reports instead of staying in "Attacks"
- quest image should glow red when new task is ready to be read (now it's only red when page is refreshed)
- disallow kicking yourself from alliance or provide a confirmation dialog and correct redirect
- sending messages to players via Admin doesn't work