Skip to content

Commit bd38e5d

Browse files
committed
use move instead of copy in stats cronjobs #5723
1 parent 6ec1f43 commit bd38e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/150-awstats.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function onRunJob() {
149149
}
150150
$files = scandir($statsdir);
151151
foreach ($files as $file) {
152-
if (substr($file, 0, 1) != "." && !is_dir("$statsdir"."/"."$file") && substr($file, 0, 1) != "w" && substr($file, 0, 1) != "i") copy("$statsdir"."/"."$file", "$statsdirold"."$file");
152+
if (substr($file, 0, 1) != "." && !is_dir("$statsdir"."/"."$file") && substr($file, 0, 1) != "w" && substr($file, 0, 1) != "i") $app->system->move("$statsdir"."/"."$file", "$statsdirold"."$file");
153153
}
154154
}
155155

0 commit comments

Comments
 (0)