API : Remove REPORTS_DIR and its use.

Relies on
https://github.com/silverstripe/silverstripe-framework/pull/7065
This commit is contained in:
Sam Minnee 2017-06-28 10:24:31 +12:00 committed by Damian Mooyman
parent 108869841c
commit cf5115624d
2 changed files with 1 additions and 7 deletions

View File

@ -1,6 +0,0 @@
<?php
$path = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
$dir = $path[count($path) - 1];
define('REPORTS_DIR', $dir);

View File

@ -65,7 +65,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider
// Set custom options for TinyMCE specific to ReportAdmin
HTMLEditorConfig::get('cms')->setOption('content_css', project() . '/css/editor.css');
Requirements::javascript(REPORTS_DIR . '/javascript/ReportAdmin.js');
Requirements::javascript('silverstripe/reports: javascript/ReportAdmin.js');
}
/**