]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_community.php
Split the name in the hcard
[friendica.git] / mod / update_community.php
index 9a39489dcfb822a39143b235b506a0d8c3905fec..c0e4c33238211f0f85311fc94c1a0627898d0446 100644 (file)
@@ -2,6 +2,9 @@
 
 // See update_profile.php for documentation
 
+use Friendica\App;
+use Friendica\Core\PConfig;
+
 require_once("mod/community.php");
 
 function update_community_content(App $a) {
@@ -15,7 +18,7 @@ function update_community_content(App $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);