]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_community.php
Catch HTTPExceptions in App::runFrontend()
[friendica.git] / mod / update_community.php
index d5f2b4cb21d18f87c723788be13069fc3eb7879d..088da0143c5954f849a4bbf62007956d53e59a16 100644 (file)
@@ -19,11 +19,7 @@ function update_community_content(App $a) {
                $text = '';
        }
 
-       $pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
-       $replace = "<img\${1} dst=\"\${2}\"";
-       $text = preg_replace($pattern, $replace, $text);
-
-       if (PConfig::get(local_user(), "system", "bandwith_saver")) {
+       if (PConfig::get(local_user(), "system", "bandwidth_saver")) {
                $replace = "<br />".L10n::t("[Embedded content - reload page to view]")."<br />";
                $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
                $text = preg_replace($pattern, $replace, $text);