X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=581d5d97a2535c227a9c8b2ecd006d4ca0c9e1bf;hb=50580fd04cf7639905ff77dd8a58910c9c8c5a52;hp=9d725fed2676376233d41bd4cdad5cd6b28fb3d0;hpb=5dfee31108fc92a7abca5f99b8fdf1b34aec5dd5;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index 9d725fed26..581d5d97a2 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -1,11 +1,27 @@ . + * * See update_profile.php for documentation */ use Friendica\App; -use Friendica\Core\L10n; +use Friendica\Core\System; use Friendica\DI; require_once "mod/display.php"; @@ -14,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); }