diff options
author | Urban Müller | 2016-01-20 17:35:16 +0100 |
---|---|---|
committer | Urban Müller | 2016-01-20 17:35:16 +0100 |
commit | dd1b348a39d01af13e7fc4a52bd7d70d86f873d2 (patch) | |
tree | 188ae755874483164d5acca404cee097df089949 /it.class | |
parent | dc5a7ca1ee4bad12f769046cc68f0891c2e5faef (diff) | |
download | itools-dd1b348a39d01af13e7fc4a52bd7d70d86f873d2.tar.gz itools-dd1b348a39d01af13e7fc4a52bd7d70d86f873d2.tar.bz2 itools-dd1b348a39d01af13e7fc4a52bd7d70d86f873d2.zip |
it::date too dangerous, newly created files with old dates overwrite archived ones
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) == "/") { |