X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=b8f3d8f498e64503c4df7f7eba65f12e459f2253;hb=589b7e718da0a1eb5f9f6e86e091307c399e0df6;hp=bd2a52934ff477894b5f38815662ed15be973c88;hpb=126c4774c330d9c9c9038312198c57fb653682df;p=friendica.git
diff --git a/mod/update_display.php b/mod/update_display.php
index bd2a52934f..b8f3d8f498 100644
--- a/mod/update_display.php
+++ b/mod/update_display.php
@@ -1,26 +1,26 @@
\r\n";
echo "";
+ $text = display_content($a, true, $profile_uid);
- $text = display_content($a,$profile_uid);
- $pattern = "/]*) src=\"([^\"]*)\"/";
- $replace = "".t("[Embedded content - reload page to view]")."
";
+ if (DI::pConfig()->get(local_user(), "system", "bandwidth_saver")) {
+ $replace = "
" . DI::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 +34,5 @@ function update_display_content(&$a) {
echo str_replace("\t", " ", $text);
echo "";
echo "\r\n";
- killme();
+ exit();
}