Added ModuleResourceLoader to javascriptTemplate

This commit is contained in:
Gorrie Coe 2017-12-15 11:20:20 +13:00
parent 0e8d288240
commit ef74911922

View File

@ -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();