X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=601808ff5e494109651cb1ffe7a803d9601a57dc;hb=0c3a5c815e7067aa587ac8f0bb8e32bb5892082e;hp=73fd915e4934b3f70b632934c4951beae995cc04;hpb=2ec3a97393959e42d450e074271d2d622d25701f;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index 73fd915e49..601808ff5e 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -21,6 +21,7 @@ */ use Friendica\App; +use Friendica\Core\System; use Friendica\DI; require_once "mod/display.php"; @@ -29,26 +30,7 @@ function update_display_content(App $a) { $profile_uid = intval($_GET["p"]); - header("Content-type: text/html"); - echo "\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); }