Updates for community pages do work now

This commit is contained in:
Michael 2018-01-04 15:46:56 +00:00
commit ade987db47
3 changed files with 10 additions and 8 deletions

View file

@ -8,12 +8,12 @@ use Friendica\Core\PConfig;
require_once("mod/community.php");
function update_community_content(App $a) {
header("Content-type: text/html");
echo "<!DOCTYPE html><html><body>\r\n";
echo "<section>";
$text = community_content($a, true);
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
$replace = "<img\${1} dst=\"\${2}\"";
$text = preg_replace($pattern, $replace, $text);
@ -34,4 +34,4 @@ function update_community_content(App $a) {
echo "</section>";
echo "</body></html>\r\n";
killme();
}
}