1
0

* More PHP 5.3.0 compat (split()).

This commit is contained in:
Garvin Hicking
2009-08-25 19:39:17 +00:00
parent 6407727fe6
commit 275589423a
7 changed files with 10 additions and 8 deletions

View File

@@ -190,7 +190,7 @@ class serendipity_plugin_statistics extends serendipity_plugin
if (!file_exists($cachef) || filesize($cachef) == 0 || filemtime($cachef) < (time() - $cachetime)) {
// Create statistics
list($year, $month, $day) = split('-', date('Y-m-d'));
list($year, $month, $day) = explode('-', date('Y-m-d'));
$lastmonday = date('Ymd', strtotime('last monday'));
$nextsunday = date('Ymd', strtotime('next sunday'));
if (date('w', strtotime('today') ) == "1" ) { // now it is monday