Auto update does work now
This commit is contained in:
parent
ade987db47
commit
2317a3b81f
|
@ -12,7 +12,11 @@ function update_community_content(App $a) {
|
||||||
echo "<!DOCTYPE html><html><body>\r\n";
|
echo "<!DOCTYPE html><html><body>\r\n";
|
||||||
echo "<section>";
|
echo "<section>";
|
||||||
|
|
||||||
$text = community_content($a, true);
|
if ($_GET["force"] == 1) {
|
||||||
|
$text = community_content($a, true);
|
||||||
|
} else {
|
||||||
|
$text = '';
|
||||||
|
}
|
||||||
|
|
||||||
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
|
$pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
|
||||||
$replace = "<img\${1} dst=\"\${2}\"";
|
$replace = "<img\${1} dst=\"\${2}\"";
|
||||||
|
|
Loading…
Reference in a new issue