]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_profile.php
Update expiration delay to 60 minutes
[friendica.git] / mod / update_profile.php
index 1bc29d82cef3f3ad4c11d82f20fe61a08d895ef0..f293088a962c1896a10e26cf5844408fbf0d37d0 100644 (file)
@@ -5,9 +5,12 @@
  * Purpose: AJAX synchronisation of profile page
  */
 
+use Friendica\App;
+use Friendica\Core\PConfig;
+
 require_once("mod/profile.php");
 
-function update_profile_content(&$a) {
+function update_profile_content(App $a) {
 
        $profile_uid = intval($_GET["p"]);
 
@@ -31,7 +34,7 @@ function update_profile_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);