mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: dev/build should function even when new classes are referenced in _config.php
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67271 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d839201092
commit
ba0c2380e9
@ -62,7 +62,10 @@ class ManifestBuilder {
|
||||
if(isset($_REQUEST['usetestmanifest'])) {
|
||||
self::load_test_manifest();
|
||||
} else {
|
||||
if(!file_exists(MANIFEST_FILE) || (filemtime(MANIFEST_FILE) < filemtime(BASE_PATH)) || isset($_GET['flush'])) {
|
||||
// The dev/build reference is some coupling but it solves an annoying bug
|
||||
if(!file_exists(MANIFEST_FILE) || (filemtime(MANIFEST_FILE) < filemtime(BASE_PATH))
|
||||
|| isset($_GET['flush']) || (isset($_REQUEST['url']) && ($_REQUEST['url'] == 'dev/build'
|
||||
|| $_REQUEST['url'] == BASE_URL . '/dev/build'))) {
|
||||
self::create_manifest_file();
|
||||
}
|
||||
require_once(MANIFEST_FILE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user