aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-05-17 11:11:57 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit07f99432b7b0c75935b758b20a30c3e0007bac13 (patch)
treec0117b855aac6ac862da94c9a99a3b617278885e
parent69e29ff65ef56b886748c58ba5b037cf217c4a1d (diff)
downloadShaarli-07f99432b7b0c75935b758b20a30c3e0007bac13.tar.gz
Shaarli-07f99432b7b0c75935b758b20a30c3e0007bac13.tar.zst
Shaarli-07f99432b7b0c75935b758b20a30c3e0007bac13.zip
Slim daily: support legacy query parameter
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index f8337d79..dbb76d3f 100644
--- a/index.php
+++ b/index.php
@@ -522,7 +522,8 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM
522 522
523 // Daily page. 523 // Daily page.
524 if ($targetPage == Router::$PAGE_DAILY) { 524 if ($targetPage == Router::$PAGE_DAILY) {
525 header('Location: ./daily'); 525 $dayParam = !empty($_GET['day']) ? '?day=' . escape($_GET['day']) : '';
526 header('Location: ./daily'. $dayParam);
526 exit; 527 exit;
527 } 528 }
528 529