X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=0fbb3f9428b8497330d1e3911701c29597f9db2b;hb=343f22e02fc9540f41c61c318c554505d730e699;hp=230bbaa0b460d20cdabfb28e4ce5760f7a9b8019;hpb=479180ca8ea9fb02c8e90b0017d2f584aa199043;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index 230bbaa0b4..0fbb3f9428 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -2,25 +2,26 @@ // See update_profile.php for documentation -require_once("mod/display.php"); -require_once("include/group.php"); +use Friendica\App; +use Friendica\Core\PConfig; -function update_display_content(App &$a) { +require_once "mod/display.php"; +function update_display_content(App $a) +{ $profile_uid = intval($_GET["p"]); header("Content-type: text/html"); echo "\r\n"; echo "
"; - - $text = display_content($a,$profile_uid); + $text = display_content($a, true, $profile_uid); $pattern = "/]*) src=\"([^\"]*)\"/"; $replace = ""; + if (PConfig::get(local_user(), "system", "bandwith_saver")) { + $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";