]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_community.php
Merge pull request #3949 from annando/further-information
[friendica.git] / mod / update_community.php
index d5df7ba3bf7e0545e355d2d2e8febcbbf7a78e91..c0e4c33238211f0f85311fc94c1a0627898d0446 100644 (file)
@@ -2,9 +2,12 @@
 
 // See update_profile.php for documentation
 
+use Friendica\App;
+use Friendica\Core\PConfig;
+
 require_once("mod/community.php");
 
-function update_community_content(&$a) {
+function update_community_content(App $a) {
 
        header("Content-type: text/html");
        echo "<!DOCTYPE html><html><body>\r\n";
@@ -15,7 +18,7 @@ function update_community_content(&$a) {
        $replace = "<img\${1} dst=\"\${2}\"";
        $text = preg_replace($pattern, $replace, $text);
 
-       if (get_pconfig(local_user(), "system", "bandwith_saver")) {
+       if (PConfig::get(local_user(), "system", "bandwith_saver")) {
                $replace = "<br />".t("[Embedded content - reload page to view]")."<br />";
                $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
                $text = preg_replace($pattern, $replace, $text);