X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=405933251056f6f93a1e743acde622ff9bfb813f;hb=1075bfb189b2c2fba0e73ffeefe4f127dfe5f084;hp=0fbb3f9428b8497330d1e3911701c29597f9db2b;hpb=343f22e02fc9540f41c61c318c554505d730e699;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index 0fbb3f9428..4059332510 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -1,8 +1,11 @@ "; $text = display_content($a, true, $profile_uid); - $pattern = "/]*) src=\"([^\"]*)\"/"; - $replace = ""; + if (PConfig::get(local_user(), "system", "bandwidth_saver")) { + $replace = "
" . L10n::t("[Embedded content - reload page to view]") . "
"; $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; $text = preg_replace($pattern, $replace, $text); $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i"; @@ -35,5 +35,5 @@ function update_display_content(App $a) echo str_replace("\t", " ", $text); echo ""; echo "\r\n"; - killme(); + exit(); }