aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-16 14:32:49 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-09-16 14:32:49 +0200
commitd30acf4e00ead8f2378a01ef2cf01368e7bb2a44 (patch)
tree2ccc111488a3a3afbf893720bfb71906f174a4e7
parent1e5efc92993feddb7916ef675010d0de0e470ac5 (diff)
Fix a bug for mark as read before 1 day/week
Current output was not remembered.
-rw-r--r--app/layout/nav_menu.phtml10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml
index 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>