mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Move Contact to src
- Add relevant use statements - Change method calls - Remove mentions to include/Contact.php
This commit is contained in:
parent
2df2942fd1
commit
ec0c2e837d
3 changed files with 11 additions and 11 deletions
|
@ -8,6 +8,7 @@
|
|||
*/
|
||||
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Model\User;
|
||||
|
||||
|
||||
function testdrive_install() {
|
||||
|
@ -79,12 +80,10 @@ function testdrive_cron($a,$b) {
|
|||
|
||||
$r = q("select * from user where account_expired = 1 and account_expires_on < UTC_TIMESTAMP() - INTERVAL 5 DAY ");
|
||||
if(count($r)) {
|
||||
require_once('include/Contact.php');
|
||||
foreach($r as $rr)
|
||||
user_remove($rr['uid']);
|
||||
|
||||
foreach($r as $rr) {
|
||||
User::remove($rr['uid']);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function testdrive_enotify(&$a, &$b) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue