X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=6c02e4a8fabf98ad212b5e6153f8cabead1f4136;hb=b705a91ccdb574aeb99a2a4edb55fd549a14d3e8;hp=c6d33132cc7557d33eae48a3681c0f8ac713efce;hpb=4c04a78d1b6f14ce90e4ca0b23e356d234c4a296;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index c6d33132cc..6c02e4a8fa 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -1,30 +1,32 @@ \r\n"; echo "
"; - if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET["force"] == 1)) { - $text = network_content($a, $profile_uid); + if (!PConfig::get($profile_uid, "system", "no_auto_update") || ($_GET["force"] == 1)) { + $text = network_content($a, $profile_uid, $parent); } else { $text = ""; } - $pattern = "/]*) src=\"([^\"]*)\"/"; - $replace = ""; + if (PConfig::get(local_user(), "system", "bandwidth_saver")) { + $replace = "
" . 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";