]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_profile.php
Fix formatting and PHP notice in mod/photos
[friendica.git] / mod / update_profile.php
index 5b15f06d30360f9f5211abd1a5be0b89e218870a..f293088a962c1896a10e26cf5844408fbf0d37d0 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 use Friendica\App;
+use Friendica\Core\PConfig;
 
 require_once("mod/profile.php");
 
@@ -33,7 +34,7 @@ function update_profile_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);