diff options
| author | 2013-12-16 00:54:13 +0100 | |
|---|---|---|
| committer | 2013-12-16 00:54:13 +0100 | |
| commit | 847de9b3292ad854b281d7e12cc36ac93e745139 (patch) | |
| tree | 65ce480d622fd983d36df9d6a60e0249de053a1a /app/layout | |
| parent | 529d6bcd15f7351cb7bdcf2f74c6a44930b0de55 (diff) | |
PHP : performances fonction isDay
Amélioration des performances de Entry->isDay()
Diffstat (limited to 'app/layout')
| -rw-r--r-- | app/layout/nav_menu.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtml index 92a987aed..045f391f9 100644 --- a/app/layout/nav_menu.phtml +++ b/app/layout/nav_menu.phtml @@ -72,7 +72,7 @@ <li class="item"><a href="<?php echo $markReadUrl; ?>"><?php echo $string_mark; ?></a></li> <li class="separator"></li> <?php - $today = @strtotime('today'); + $today = $this->today; $one_week = $today - 604800; ?> <li class="item"><a href="<?php echo _url ('entry', 'read', 'is_read', 1, 'get', $get, 'idMax', $today . '000000'); ?>"><?php echo Minz_Translate::t ('before_one_day'); ?></a></li> |
