X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=0fbb3f9428b8497330d1e3911701c29597f9db2b;hb=343f22e02fc9540f41c61c318c554505d730e699;hp=b8538a256bc99ab17eaee30d38c91660d0024358;hpb=2b161108fe6552ef2effb7b300553f0242b2e49e;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index b8538a256b..0fbb3f9428 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -3,26 +3,25 @@ // See update_profile.php for documentation use Friendica\App; +use Friendica\Core\PConfig; -require_once("mod/display.php"); -require_once("include/group.php"); - -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";