mirror of
https://github.com/friendica/friendica
synced 2025-05-01 03:04:23 +02:00
Issue-#3873
Replace deprecated functions with new syntax.
This commit is contained in:
parent
9eb1f4b9c3
commit
0dfa57948f
124 changed files with 819 additions and 679 deletions
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Network\Probe;
|
||||
|
@ -50,7 +51,7 @@ function contact_remove($id) {
|
|||
return;
|
||||
}
|
||||
|
||||
$archive = get_pconfig($r[0]['uid'], 'system','archive_removed_contacts');
|
||||
$archive = PConfig::get($r[0]['uid'], 'system','archive_removed_contacts');
|
||||
if ($archive) {
|
||||
q("update contact set `archive` = 1, `network` = 'none', `writable` = 0 where id = %d",
|
||||
intval($id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue