cron.php is reworked, other worker files had been moved temporarily

This commit is contained in:
Michael
2017-11-14 21:50:16 +00:00
parent 799c67c141
commit 405753d1c3
24 changed files with 265 additions and 289 deletions
-24
View File
@@ -1,24 +0,0 @@
<?php
/**
* @file include/remove_contact.php
* @brief Removes orphaned data from deleted contacts
*/
use Friendica\Core\Config;
function remove_contact_run($argv, $argc) {
if ($argc != 2) {
return;
}
$id = intval($argv[1]);
// Only delete if the contact doesn't exist (anymore)
$r = dba::exists('contact', array('id' => $id));
if ($r) {
return;
}
// Now we delete all the depending table entries
dba::delete('contact', array('id' => $id));
}