fix cleanup + attendance bonus

This commit is contained in:
xiaomlove
2022-03-09 12:08:14 +08:00
parent b8c288d07b
commit 7b8b7ed510
7 changed files with 24 additions and 16 deletions
+2 -2
View File
@@ -1902,7 +1902,7 @@ function userlogin() {
return $loginResult = true;
}
function autoclean() {
function autoclean($printProgress = false) {
global $autoclean_interval_one, $rootpath;
$now = TIMENOW;
$res = sql_query("SELECT value_u FROM avps WHERE arg = 'lastcleantime'");
@@ -1923,7 +1923,7 @@ function autoclean() {
return false;
}
require_once($rootpath . 'include/cleanup.php');
return docleanup();
return docleanup(0, $printProgress);
}
function unesc($x) {