From f27fb07e4d78893c549050c3f856845eedbd5e80 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Fri, 2 Aug 2013 10:53:35 +1200 Subject: [PATCH] FIX Include flushtoken when install redirects to successfullyinstalled --- install.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/install.php b/install.php index 5c2e7a8..40067c2 100644 --- a/install.php +++ b/install.php @@ -1124,15 +1124,19 @@ PHP $this->statusMessage("Checking that friendly URLs work..."); $this->checkRewrite(); } else { + require_once 'core/startup/ParameterConfirmationToken.php'; + $token = new ParameterConfirmationToken('flush'); + $params = http_build_query($token->params()); + echo <<SilverStripe successfully installed; I am now redirecting you to your SilverStripe site... HTML; } @@ -1243,13 +1247,17 @@ TEXT; } function checkRewrite() { + require_once 'core/startup/ParameterConfirmationToken.php'; + $token = new ParameterConfirmationToken('flush'); + $params = http_build_query($token->params()); + echo <<Testing... HTML; }