summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2016-01-20 17:35:16 +0100
committerUrban Müller2016-01-20 17:35:16 +0100
commitdd1b348a39d01af13e7fc4a52bd7d70d86f873d2 (patch)
tree188ae755874483164d5acca404cee097df089949
parentdc5a7ca1ee4bad12f769046cc68f0891c2e5faef (diff)
downloaditools-dd1b348a39d01af13e7fc4a52bd7d70d86f873d2.tar.gz
itools-dd1b348a39d01af13e7fc4a52bd7d70d86f873d2.tar.bz2
itools-dd1b348a39d01af13e7fc4a52bd7d70d86f873d2.zip
it::date too dangerous, newly created files with old dates overwrite archived ones
-rw-r--r--it.class4
1 files 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) == "/")
{