mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #78 from sminnee/resource-loading
API: Remove REPORTS_DIR and its use.
This commit is contained in:
commit
9e7108420b
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
$path = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
|
||||
$dir = $path[count($path) - 1];
|
||||
|
||||
define('REPORTS_DIR', $dir);
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user