diff --git a/classes/Tools.php b/classes/Tools.php index 4d7a14a85..b58cc2b3f 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -2573,12 +2573,9 @@ exit; return $fileAttachment; } - public static function changeFileMTime($file_name, $time = null) + public static function changeFileMTime($file_name) { - if ($time === null) - $time = time(); - - touch($file_name, $time); + touch($file_name); } public static function waitUntilFileIsModified($file_name, $timeout = 180)