mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Added ModuleResourceLoader to javascriptTemplate
This commit is contained in:
parent
0e8d288240
commit
ef74911922
@ -602,6 +602,7 @@ class Requirements_Backend
|
||||
*/
|
||||
public function javascriptTemplate($file, $vars, $uniquenessID = null)
|
||||
{
|
||||
$file = ModuleResourceLoader::singleton()->resolvePath($file);
|
||||
$script = file_get_contents(Director::getAbsFile($file));
|
||||
$search = array();
|
||||
$replace = array();
|
||||
|
Loading…
Reference in New Issue
Block a user