diff --git a/src/View/Requirements_Backend.php b/src/View/Requirements_Backend.php index abee657b8..e98ad21cf 100644 --- a/src/View/Requirements_Backend.php +++ b/src/View/Requirements_Backend.php @@ -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();