X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=6c02e4a8fabf98ad212b5e6153f8cabead1f4136;hb=afa194200beb2b814612119acb5ab5cf54ae4d36;hp=c6d33132cc7557d33eae48a3681c0f8ac713efce;hpb=b6d11f21297331cda361ebadca3c1cf453027fdd;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";