From 496dbd3e7ab8dc5d10602b5e07fc5fa800c66730 Mon Sep 17 00:00:00 2001 From: Szabolcs Hubai Date: Sun, 9 Feb 2025 22:39:28 +0100 Subject: [PATCH] framework: fix leftover Play.getVirtualFile() usage in tags (#198, #291) "tags/script.tag" and "tags/stylesheet.tag" files were left out from the rename commit 397f4cac915af7be84753d009b6bcc84cb3c0d5e. Fixes: 397f4cac915a ("rename 'getVirtualFile()' to just 'file()'") --- framework/src/tags/script.tag | 2 +- framework/src/tags/stylesheet.tag | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }}%