mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #184 from creative-commoners/pulls/5.2/remove-self
ENH Use class name instead of self
This commit is contained in:
commit
fafd3c0e8c
@ -102,7 +102,7 @@ class Report extends ViewableData
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private static $excluded_reports = [
|
private static $excluded_reports = [
|
||||||
self::class,
|
Report::class,
|
||||||
ReportWrapper::class,
|
ReportWrapper::class,
|
||||||
SideReportWrapper::class,
|
SideReportWrapper::class,
|
||||||
];
|
];
|
||||||
@ -275,7 +275,7 @@ class Report extends ViewableData
|
|||||||
*/
|
*/
|
||||||
public static function get_excluded_reports()
|
public static function get_excluded_reports()
|
||||||
{
|
{
|
||||||
return (array) self::config()->get('excluded_reports');
|
return (array) Report::config()->get('excluded_reports');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user