mirror of
https://github.com/friendica/friendica
synced 2024-11-14 05:02:54 +00:00
Cut and paste is always fun
This commit is contained in:
parent
4bf425de5d
commit
7099a54b3d
1 changed files with 3 additions and 3 deletions
|
@ -17,9 +17,6 @@ class DBClean {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the expire days for step 8 and 9
|
|
||||||
$days = Config::get('system', 'dbclean-expire-days', 0);
|
|
||||||
|
|
||||||
if ($stage == 0) {
|
if ($stage == 0) {
|
||||||
self::forkCleanProcess();
|
self::forkCleanProcess();
|
||||||
} else {
|
} else {
|
||||||
|
@ -31,6 +28,9 @@ class DBClean {
|
||||||
* @brief Fork the different DBClean processes
|
* @brief Fork the different DBClean processes
|
||||||
*/
|
*/
|
||||||
private static function forkCleanProcess() {
|
private static function forkCleanProcess() {
|
||||||
|
// Get the expire days for step 8 and 9
|
||||||
|
$days = Config::get('system', 'dbclean-expire-days', 0);
|
||||||
|
|
||||||
for ($i = 1; $i <= 10; $i++) {
|
for ($i = 1; $i <= 10; $i++) {
|
||||||
// Execute the background script for a step when it isn't finished.
|
// Execute the background script for a step when it isn't finished.
|
||||||
// Execute step 8 and 9 only when $days is defined.
|
// Execute step 8 and 9 only when $days is defined.
|
||||||
|
|
Loading…
Reference in a new issue