Skip to content

Commit

Permalink
Migrate excluded report to YAML config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Garion Herman committed Aug 28, 2017
1 parent ddefef1 commit 8be959f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions _config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
<?php

use SilverStripe\Reports\Report;
use SilverStripe\Subsites\Reports\SubsiteReportWrapper;

Report::add_excluded_reports(SubsiteReportWrapper::class);
4 changes: 4 additions & 0 deletions _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ SilverStripe\AssetAdmin\Controller\AssetAdmin:
Director:
rules:
SubsiteXHRController: SilverStripe\Subsites\Controller\SubsiteXHRController

SilverStripe\Reports\Report:
excluded_reports:
- SilverStripe\Subsites\Reports\SubsiteReportWrapper

0 comments on commit 8be959f

Please sign in to comment.