X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=581d5d97a2535c227a9c8b2ecd006d4ca0c9e1bf;hb=05ed13a2796c37093eb156e6b64d08fda0595c71;hp=73fd915e4934b3f70b632934c4951beae995cc04;hpb=2c56d2f3360c08e312e5c167261af8e5d4b87af4;p=friendica.git
diff --git a/mod/update_display.php b/mod/update_display.php
index 73fd915e49..581d5d97a2 100644
--- a/mod/update_display.php
+++ b/mod/update_display.php
@@ -1,6 +1,6 @@
\r\n";
- echo "";
-
$text = display_content($a, true, $profile_uid);
- 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";
- $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";
- exit();
+ System::htmlUpdateExit($text);
}