Updates for community pages do work now
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user