mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
FIX Don't cause errors if elemental isn't installed (#194)
This commit is contained in:
parent
9aada4af47
commit
0370f64bbd
@ -5,6 +5,10 @@ namespace SilverStripe\FrameworkTest\Elemental\Extension;
|
|||||||
use DNADesign\Elemental\Extensions\ElementalAreasExtension;
|
use DNADesign\Elemental\Extensions\ElementalAreasExtension;
|
||||||
use DNADesign\Elemental\Models\ElementalArea;
|
use DNADesign\Elemental\Models\ElementalArea;
|
||||||
|
|
||||||
|
if (!class_exists(ElementalAreasExtension::class)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is used to test multiple elemental areas on a page
|
* This is used to test multiple elemental areas on a page
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user