From c76772e868dae500c536f283af19d92fc50756dc Mon Sep 17 00:00:00 2001 From: 8chan Date: Fri, 24 Apr 2015 17:46:53 -0700 Subject: [PATCH] claim.php: file_write, not unix pipe (fix blank page issue) --- README.md | 2 +- claim.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7018cdc8..dc84fee8 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ A lot of the static pages (claim.html, boards.html, index.html) need to be regen ```cron */10 * * * * cd /srv/http; /usr/bin/php /srv/http/boards.php -*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php > /srv/http/claim.html +*/5 * * * * cd /srv/http; /usr/bin/php /srv/http/claim.php */20 * * * * cd /srv/http; /usr/bin/php -r 'include "inc/functions.php"; rebuildThemes("bans");' */5 * * * * cd /srv/http; /usr/bin/php /srv/http/index.php ``` diff --git a/claim.php b/claim.php index 456c8a32..11625e85 100644 --- a/claim.php +++ b/claim.php @@ -58,4 +58,4 @@ foreach($boards as $board) { } } $body = Element("8chan/claim.html", array("config" => $config, "delete" => $delete)); -echo Element("page.html", array("config" => $config, "body" => $body, "title" => _("Claim"), "subtitle" => _("Take deserted boards back from their owners"))); +file_write("claim.html", Element("page.html", array("config" => $config, "body" => $body, "title" => _("Claim"), "subtitle" => _("Take deserted boards back from their owners"))));