X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=9aa0443f1e3cc76700abb4d6253390daf47aabf7;hb=9435cc4b88de611407bf992f571e12e8f54b3c51;hp=c6d33132cc7557d33eae48a3681c0f8ac713efce;hpb=c0df692f5fc4eaadb322614069b2c7ed40453fa1;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index c6d33132cc..9aa0443f1e 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -1,30 +1,35 @@ \r\n"; echo "
"; - if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET["force"] == 1)) { - $text = network_content($a, $profile_uid); + if (!DI::pConfig()->get($profile_uid, "system", "no_auto_update") || ($_GET["force"] == 1)) { + $text = network_content($a, $profile_uid, $parent); } else { $text = ""; } - $pattern = "/]*) src=\"([^\"]*)\"/"; - $replace = ""; + 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"; @@ -38,5 +43,5 @@ function update_network_content(App &$a) { echo str_replace("\t", " ", $text); echo "
"; echo "\r\n"; - killme(); + exit(); }