From eed709384d4791d3467dcc79809d6f66a7de21e0 Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Thu, 22 Jan 2015 10:33:38 +0000 Subject: [PATCH] FIX: dev/build not flushing manifests if site is in a subfolder --- core/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Core.php b/core/Core.php index df2c7f802..7a5158d8b 100644 --- a/core/Core.php +++ b/core/Core.php @@ -96,7 +96,7 @@ Injector::set_inst($injector); // The coupling is a hack, but it removes an annoying bug where new classes // referenced in _config.php files can be referenced during the build process. $requestURL = isset($_REQUEST['url']) ? trim($_REQUEST['url'], '/') : false; -$flush = (isset($_GET['flush']) || $requestURL == 'dev/build' || $requestURL == BASE_URL . '/dev/build'); +$flush = (isset($_GET['flush']) || $requestURL === trim(BASE_URL . '/dev/build', '/')); global $manifest; $manifest = new SS_ClassManifest(BASE_PATH, false, $flush);