mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUGFIX Fixes so ?flush=1 doesn't stop showing the Reports tab in CMS
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63983 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
58077f8851
commit
f8a02ca736
@ -47,7 +47,9 @@ class ReportAdmin extends LeftAndMain {
|
||||
|
||||
if($subClasses) {
|
||||
foreach($subClasses as $subClass) {
|
||||
if($subClass != 'SSReport') $processedReports[] = new $subClass();
|
||||
if($subClass != 'SSReport') {
|
||||
$processedReports[] = new $subClass();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -159,6 +161,7 @@ class ReportAdmin extends LeftAndMain {
|
||||
* @return boolean
|
||||
*/
|
||||
public static function has_reports() {
|
||||
global $_ALL_CLASSES;
|
||||
$subClasses = ClassInfo::subclassesFor('SSReport');
|
||||
|
||||
if($subClasses) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user