mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
BUGFIX: Check for class_exists in contentreview
This commit is contained in:
parent
379d2833e4
commit
eed8ad2918
@ -3,7 +3,7 @@
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user