Merge pull request #3815 from kinglozzer/dev-build-subdir

FIX: dev/build not flushing manifests if site is in a subfolder
This commit is contained in:
Daniel Hensby 2015-02-11 22:45:46 +00:00
commit f8fe4a9096

View File

@ -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);