BUGFIX: Check for class_exists in contentreview

This commit is contained in:
Luke Hudson 2010-03-01 21:17:11 +00:00
parent 379d2833e4
commit eed8ad2918

View File

@ -3,8 +3,8 @@
Object::add_extension('SiteTree', 'SiteTreeContentReview'); Object::add_extension('SiteTree', 'SiteTreeContentReview');
if(class_exists('Subsite')) { if(class_exists('Subsite') && class_exists('SubsiteReportWrapper')){
SS_Report::register('ReportAdmin', 'SubsiteReportWrapper("PagesDueForReviewReport")',20); SS_Report::register('ReportAdmin', 'SubsiteReportWrapper("PagesDueForReviewReport")',20);
} else { } else {
SS_Report::register('ReportAdmin', 'PagesDueForReviewReport',20); SS_Report::register('ReportAdmin', 'PagesDueForReviewReport',20);
} }