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:
Ingo Schommer 2008-12-01 01:49:48 +00:00
parent 32b1542a4b
commit 45798b065c

View File

@ -24,4 +24,8 @@ if(!class_exists('CMSMenu')) {
'Sub-sites' => array("intranets", "admin/subsites/", 'SubsiteAdmin')
)));
}
if(!class_exists('GenericDataAdmin')) {
user_error('Please install the module "genericdataadmin" to use subsites', E_USER_ERROR);
}
?>