X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=405933251056f6f93a1e743acde622ff9bfb813f;hb=27eaffd7fb4713491dbb72410b0adc55d4c9a6aa;hp=86f4db8259f83c4db9fdd580666c91da42060c16;hpb=63e2695d226d195c6a97e1045d6b174591dd2487;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index 86f4db8259..4059332510 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -1,26 +1,27 @@ \r\n"; echo "
"; + $text = display_content($a, true, $profile_uid); - $text = display_content($a,$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"; @@ -34,5 +35,5 @@ function update_display_content(App $a) { echo str_replace("\t", " ", $text); echo "
"; echo "\r\n"; - killme(); + exit(); }