Skip to content

Commit

Permalink
framework: fix leftover Play.getVirtualFile() usage in tags (#198, #291)
Browse files Browse the repository at this point in the history
"tags/script.tag" and "tags/stylesheet.tag" files were left out from
the rename commit 397f4ca.

Fixes: 397f4ca ("rename 'getVirtualFile()' to just 'file()'")
  • Loading branch information
xabolcs authored and asolntsev committed Feb 11, 2025
1 parent 4076c54 commit 496dbd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/src/tags/script.tag
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion framework/src/tags/stylesheet.tag
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}%
Expand Down

0 comments on commit 496dbd3

Please sign in to comment.