From 4455af446d843e60b00c4ebd8d053d93d5908a2c Mon Sep 17 00:00:00 2001 From: cdujeu Date: Sat, 11 Jan 2014 12:46:54 +0100 Subject: [PATCH] Fix #394 --- core/src/plugins/log.text/class.textLogDriver.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/plugins/log.text/class.textLogDriver.php b/core/src/plugins/log.text/class.textLogDriver.php index d753133fc4..05e841fb04 100644 --- a/core/src/plugins/log.text/class.textLogDriver.php +++ b/core/src/plugins/log.text/class.textLogDriver.php @@ -216,12 +216,12 @@ public function xmlListLogFiles($nodeName="file", $year=null, $month=null, $root $split2 = explode("_", $split[0]); $date = $split2[1]; $dSplit = explode("-", $date); - $logY = $dSplit[2]; - $logM = $dSplit[0]; $time = mktime(0,0,1,intval($dSplit[0]), intval($dSplit[1]), intval($dSplit[2])); $display = date("l d", $time); $fullYear = date("Y", $time); $fullMonth = date("F", $time); + $logY = $fullYear; + $logM = $fullMonth; if($year != null && $fullYear != $year) continue; if($month != null && $fullMonth != $month) continue; $logs[$time] = "<$nodeName icon=\"toggle_log.png\" date=\"$display\" display=\"$display\" text=\"$date\" is_file=\"0\" filename=\"$rootPath/$fullYear/$fullMonth/$date\"/>";