mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Don't load SapphireTest unnecessarily, as this is a slow operation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@75147 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
bac89fd2c5
commit
8fcdcfa2eb
@ -775,8 +775,12 @@ class Requirements_Backend {
|
||||
*
|
||||
*/
|
||||
function process_combined_files() {
|
||||
// The class_exists call prevents us from loading SapphireTest.php (slow) just to know that
|
||||
// SapphireTest isn't running :-)
|
||||
if(class_exists('SapphireTest',false)) $runningTest = SapphireTest::is_running_test();
|
||||
else $runningTest = false;
|
||||
|
||||
if((Director::isDev() && !SapphireTest::is_running_test()) || !Requirements::get_combined_files_enabled()) {
|
||||
if((Director::isDev() && !$runningTest) || !Requirements::get_combined_files_enabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user