From 06007f4455369bb3879a5298ab57efaf7d67bd26 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Thu, 4 Feb 2010 22:45:47 +0000 Subject: [PATCH] BUGFIX: Check for SubsiteReportWrapper class, not Subsite, so the CMS still works with older versions of Subsites git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98257 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- _config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.php b/_config.php index b73ceed1..8c17feb2 100644 --- a/_config.php +++ b/_config.php @@ -54,7 +54,7 @@ HtmlEditorConfig::get('cms')->addButtonsToLine(3, 'tablecontrols'); SS_Report::register("SideReport", "SideReport_EmptyPages"); SS_Report::register("SideReport", "SideReport_RecentlyEdited"); SS_Report::register("SideReport", "SideReport_ToDo"); -if (class_exists('Subsite')) SS_Report::register('ReportAdmin', 'SubsiteReportWrapper("BrokenLinksReport")',-20); +if (class_exists('SubsiteReportWrapper')) SS_Report::register('ReportAdmin', 'SubsiteReportWrapper("BrokenLinksReport")',-20); else SS_Report::register('ReportAdmin', 'BrokenLinksReport',-20);