X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fupdate_display.php;h=4b6d26cb7f4fb9303cf8ff3cee72be1caad1d70a;hb=196ef0111cf3cdb7d2d50a2e14acd92d5da1d26c;hp=9400cb39a6f02ba01094d6a4f2e5730cca82cbd0;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git
diff --git a/mod/update_display.php b/mod/update_display.php
index 9400cb39a6..4b6d26cb7f 100644
--- a/mod/update_display.php
+++ b/mod/update_display.php
@@ -1,39 +1,39 @@
\r\n";
echo "";
-
- $text = display_content($a,$profile_uid);
- $pattern = "/
]*) src=\"([^\"]*)\"/";
- $replace = "
' . 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";
- $text = preg_replace($pattern, $replace, $text);
- $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i";
- $text = preg_replace($pattern, $replace, $text);
- $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
- $text = preg_replace($pattern, $replace, $text);
-
-
- echo str_replace("\t",' ',$text);
+ $text = display_content($a, true, $profile_uid);
+
+ 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";
+ $text = preg_replace($pattern, $replace, $text);
+ $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i";
+ $text = preg_replace($pattern, $replace, $text);
+ $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
+ $text = preg_replace($pattern, $replace, $text);
+ }
+
+ echo str_replace("\t", " ", $text);
echo "";
echo "\r\n";
killme();
}
-}