Fix by roti
This commit is contained in:
@@ -193,6 +193,11 @@ class serendipity_plugin_statistics extends serendipity_plugin
|
|||||||
list($year, $month, $day) = split('-', date('Y-m-d'));
|
list($year, $month, $day) = split('-', date('Y-m-d'));
|
||||||
$lastmonday = date('Ymd', strtotime('last monday'));
|
$lastmonday = date('Ymd', strtotime('last monday'));
|
||||||
$nextsunday = date('Ymd', strtotime('next sunday'));
|
$nextsunday = date('Ymd', strtotime('next sunday'));
|
||||||
|
if (date('w', strtotime('today') ) == "1" ) { // now it is monday
|
||||||
|
$lastmonday = date('Ymd', strtotime('today'));
|
||||||
|
} else if (date('w', strtotime('today') ) == "0" ) { // now it is sunday
|
||||||
|
$nextsunday = date('Ymd', strtotime('today'));
|
||||||
|
}
|
||||||
|
|
||||||
$content = '';
|
$content = '';
|
||||||
if (serendipity_db_bool($this->get_config('show_lastentry'))) {
|
if (serendipity_db_bool($this->get_config('show_lastentry'))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user