X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=6ba761d04acf861382fc9714688fdbb83ce5fd67;hb=b55546b72649a645987e017397901a86122eba67;hp=869973ace4f07af1b8c2750103849a36f6f85f5d;hpb=b067a1114679ebc3dc6132759c511c3ac8b73e49;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index 869973ace4..6ba761d04a 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -1,30 +1,36 @@
\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 = "".t("[Embedded content - reload page to view]")."
";
+ 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";
@@ -38,5 +44,5 @@ function update_network_content(App $a) {
echo str_replace("\t", " ", $text);
echo "";
echo "\r\n";
- killme();
+ exit();
}