From 45798b065c1ccc8c8424d9e784cb27e51aced261 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 1 Dec 2008 01:49:48 +0000 Subject: [PATCH] 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()) --- _config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_config.php b/_config.php index 3b471c7..012ba4d 100644 --- a/_config.php +++ b/_config.php @@ -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); +} ?> \ No newline at end of file