From 82f65fded492cce7735fc99fbd03c6306117e53e 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 af6253fa7..47a52a963 100644 --- a/main.php +++ b/main.php @@ -132,7 +132,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) {