mirror of
https://github.com/friendica/friendica
synced 2025-04-28 02:30:16 +00:00
Issue-#3873
Replace deprecated functions with new syntax.
This commit is contained in:
parent
c847a2f9cc
commit
acb4630eed
124 changed files with 819 additions and 679 deletions
|
@ -5,6 +5,7 @@
|
|||
* @brief This file includes the DirSearch class with directory related functions
|
||||
*/
|
||||
|
||||
use Friendica\Core\Config;
|
||||
|
||||
/**
|
||||
* @brief This class handels directory related functions
|
||||
|
@ -22,12 +23,12 @@ class DirSearch {
|
|||
|
||||
if($search) {
|
||||
// check supported networks
|
||||
if (get_config('system','diaspora_enabled'))
|
||||
if (Config::get('system','diaspora_enabled'))
|
||||
$diaspora = NETWORK_DIASPORA;
|
||||
else
|
||||
$diaspora = NETWORK_DFRN;
|
||||
|
||||
if (!get_config('system','ostatus_disabled'))
|
||||
if (!Config::get('system','ostatus_disabled'))
|
||||
$ostatus = NETWORK_OSTATUS;
|
||||
else
|
||||
$ostatus = NETWORK_DFRN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue