X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=a6c8173794546301ed8af159d42cd9bd37e9a868;hb=2196a0577b29dcec1ba4d2c32be10fa5f0e91034;hp=c6d33132cc7557d33eae48a3681c0f8ac713efce;hpb=8ec5b06e0440302cef9f6bc2f35730fca5a9030e;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index c6d33132cc..a6c8173794 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -2,10 +2,13 @@ // See update_profile.php for documentation +use Friendica\App; +use Friendica\Core\PConfig; + require_once("mod/network.php"); require_once("include/group.php"); -function update_network_content(App &$a) { +function update_network_content(App $a) { $profile_uid = intval($_GET["p"]); @@ -13,7 +16,7 @@ function update_network_content(App &$a) { echo "\r\n"; echo "
"; - if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET["force"] == 1)) { + if (!PConfig::get($profile_uid, "system", "no_auto_update") || ($_GET["force"] == 1)) { $text = network_content($a, $profile_uid); } else { $text = ""; @@ -23,7 +26,7 @@ function update_network_content(App &$a) { $replace = ""; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text);