diff --git a/framework/src/tags/script.tag b/framework/src/tags/script.tag index ce526144..f47da841 100644 --- a/framework/src/tags/script.tag +++ b/framework/src/tags/script.tag @@ -16,7 +16,7 @@ } _src = (_path ? _path : "/public/javascripts/") + _src try { - _abs = play.mvc.Router.reverseWithCheck(_src, play.Play.getVirtualFile(_src), false); + _abs = play.mvc.Router.reverseWithCheck(_src, play.Play.file(_src), false); } catch (Exception ex) { throw new play.exceptions.TagInternalException("File not found: " + _src, ex); } diff --git a/framework/src/tags/stylesheet.tag b/framework/src/tags/stylesheet.tag index eb9cfad7..e30dc8c5 100644 --- a/framework/src/tags/stylesheet.tag +++ b/framework/src/tags/stylesheet.tag @@ -15,7 +15,7 @@ } _src = (_path ? _path : "/public/stylesheets/") + _src try { - _abs = play.mvc.Router.reverseWithCheck(_src, play.Play.getVirtualFile(_src), false); + _abs = play.mvc.Router.reverseWithCheck(_src, play.Play.file(_src), false); } catch (Exception ex) { throw new play.exceptions.TagInternalException("File not found: " + _src, ex); }}%