Auto update does work now

This commit is contained in:
Michael 2018-01-04 15:58:07 +00:00
parent ade987db47
commit 2317a3b81f
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ function update_community_content(App $a) {
echo "<!DOCTYPE html><html><body>\r\n";
echo "<section>";
$text = community_content($a, true);
if ($_GET["force"] == 1) {
$text = community_content($a, true);
} else {
$text = '';
}
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
$replace = "<img\${1} dst=\"\${2}\"";