From 050115f43141a850ac9d10f6a23be17695d31a76 Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Tue, 10 Dec 2013 10:35:03 +1300 Subject: [PATCH] FIX Dont pop up basic auth dialog when trying to flush and isDev=1, just redirect to Security/login like normal --- main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.php b/main.php index f60b5d9c9..888376897 100644 --- a/main.php +++ b/main.php @@ -134,7 +134,7 @@ $chain // Then if a flush was requested, redirect to it if ($token->parameterProvided() && !$token->tokenProvided()) { // First, check if we're in dev mode, or the database doesn't have any security data - $canFlush = Director::isDev() || !Security::database_is_ready(); + $canFlush = Director::isDev(true) || !Security::database_is_ready(); // Otherwise, we start up the session if needed, then check for admin if (!$canFlush) {