mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Making SiteConfig dependency optional in LeftAndMain->SiteConfig()
This commit is contained in:
parent
fe5a7f7351
commit
71bc87fa1e
@ -1092,7 +1092,7 @@ class LeftAndMain extends Controller {
|
||||
* @return SiteConfig
|
||||
*/
|
||||
function SiteConfig() {
|
||||
return SiteConfig::current_site_config();
|
||||
return (class_exists('SiteConfig')) ? SiteConfig::current_site_config() : null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user