X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=6c02e4a8fabf98ad212b5e6153f8cabead1f4136;hb=675a6adf356689c9e504c4a65eacd073aad421eb;hp=b2e7abc90cccabd23e64c724a7ecd6f70d17a22c;hpb=9330a6994c1b9aee49a482efe32e84ca1a944c9b;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index b2e7abc90c..6c02e4a8fa 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -1,42 +1,44 @@
\r\n";
echo "";
- if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET['force'] == 1))
- $text = network_content($a,$profile_uid);
- else
+ 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]') . '
';
- $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
- $text = preg_replace($pattern, $replace, $text);
- $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";
- $text = preg_replace($pattern, $replace, $text);
- $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i";
- $text = preg_replace($pattern, $replace, $text);
- $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
- $text = preg_replace($pattern, $replace, $text);
-
-
- echo str_replace("\t",' ',$text);
+ }
+
+ 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";
+ $text = preg_replace($pattern, $replace, $text);
+ $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i";
+ $text = preg_replace($pattern, $replace, $text);
+ $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
+ $text = preg_replace($pattern, $replace, $text);
+ }
+
+ echo str_replace("\t", " ", $text);
echo "";
echo "\r\n";
killme();
}
-}