mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
BUGFIX Checking for existence of GenericDataAdmin class which is required to include SubsiteAdmin (fails silently because the class is never picked up by CMSMenu::populate_defaults())
This commit is contained in:
parent
32b1542a4b
commit
45798b065c
@ -24,4 +24,8 @@ if(!class_exists('CMSMenu')) {
|
|||||||
'Sub-sites' => array("intranets", "admin/subsites/", 'SubsiteAdmin')
|
'Sub-sites' => array("intranets", "admin/subsites/", 'SubsiteAdmin')
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!class_exists('GenericDataAdmin')) {
|
||||||
|
user_error('Please install the module "genericdataadmin" to use subsites', E_USER_ERROR);
|
||||||
|
}
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user