From dd1b348a39d01af13e7fc4a52bd7d70d86f873d2 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 20 Jan 2016 17:35:16 +0100 Subject: it::date too dangerous, newly created files with old dates overwrite archived ones --- it.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it.class b/it.class index 6a77672..74fce18 100644 --- a/it.class +++ b/it.class @@ -75,9 +75,9 @@ static function &cloneobj(&$object) static function log($name /* ... */) { $args = func_get_args(); - $line = it::date("Y-m-d H:i:s") . "\t" . implode("\t", array_slice($args, 1)) . "\n"; + $line = date("Y-m-d H:i:s") . "\t" . implode("\t", array_slice($args, 1)) . "\n"; $basefn = substr($name, 0, 1) == "/" ? $name : $GLOBALS['ULTRAHOME'] . "/log/$name"; - $fullfn = $basefn . "-" . it::date('Ymd'); + $fullfn = $basefn . "-" . date('Ymd'); if (substr($fullfn, 0, 1) == "/") { -- cgit v1.2.3