A free, self-hostable news aggregator…
Fix a bug for mark as read before 1 day/week
Marien Fressinaudd30acf4e00ea
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtmlindex a997a7d54..2a09b0c12 100644--- a/app/layout/nav_menu.phtml+++ b/app/layout/nav_menu.phtml@@ -208,19 +208,21 @@</li><li class="separator"></li><?php- $today = $this->today;- $one_week = $today - 604800;+ $mark_before_today = $arUrl;+ $mark_before_today['params']['idMax'] = $this->today . '000000';+ $mark_before_one_week = $arUrl;+ $mark_before_one_week['params']['idMax'] = ($this->today - 604800) . '000000';?><li class="item"><button class="as-link <?php echo $confirm; ?>"form="mark-read"- formaction="<?php echo _url('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $today . '000000'); ?>"+ formaction="<?php echo Minz_Url::display($mark_before_today); ?>"type="submit"><?php echo _t('before_one_day'); ?></button></li><li class="item"><button class="as-link <?php echo $confirm; ?>"form="mark-read"- formaction="<?php echo _url('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $one_week . '000000'); ?>"+ formaction="<?php echo Minz_Url::display($mark_before_one_week); ?>"type="submit"><?php echo _t('before_one_week'); ?></button></li></ul>