X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=mod%2Fupdate_network.php;h=11dfc5e03c8de2f469a134de5ffe02195800e078;hb=e20ea092d2ba4496d0c8f9a907d1de62a0f3348b;hp=c6d33132cc7557d33eae48a3681c0f8ac713efce;hpb=8ec5b06e0440302cef9f6bc2f35730fca5a9030e;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index c6d33132cc..11dfc5e03c 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";