]> git.mxchange.org Git - friendica.git/blobdiff - mod/update_display.php
Add database doc about the new oembed.maxwidth field
[friendica.git] / mod / update_display.php
index b0fbbbba637e1ca4d5eccedae12ab3c0c1afcbfe..0fbb3f9428b8497330d1e3911701c29597f9db2b 100644 (file)
@@ -5,7 +5,6 @@
 use Friendica\App;
 use Friendica\Core\PConfig;
 
-require_once("include/group.php");
 require_once "mod/display.php";
 
 function update_display_content(App $a)
@@ -16,13 +15,13 @@ function update_display_content(App $a)
        echo "<!DOCTYPE html><html><body>\r\n";
        echo "<section>";
 
-       $text = display_content($a, $profile_uid);
+       $text = display_content($a, true, $profile_uid);
        $pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
        $replace = "<img\${1} dst=\"\${2}\"";
        $text = preg_replace($pattern, $replace, $text);
 
        if (PConfig::get(local_user(), "system", "bandwith_saver")) {
-               $replace = "<br />".t("[Embedded content - reload page to view]")."<br />";
+               $replace = "<br />" . t("[Embedded content - reload page to view]") . "<br />";
                $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
                $text = preg_replace($pattern, $replace, $text);
                $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";