]> source.dussan.org Git - nextcloud-server.git/commit
fix(OC/Template): Allow `.mjs` files within custom app paths
authorFerdinand Thiessen <rpm@fthiessen.de>
Tue, 10 Jan 2023 02:04:58 +0000 (03:04 +0100)
committerFerdinand Thiessen <rpm@fthiessen.de>
Wed, 22 Feb 2023 20:19:37 +0000 (21:19 +0100)
commita3595f73acb538df0f3df96418d066d6a3ce60b8
treeefda194c0ba134529a5022cd1299385ab0daaf2d
parentb642137c652e5262c88dd4ddc055df684c8da8a2
fix(OC/Template): Allow `.mjs` files within custom app paths

If apps are installed in non standard app paths, we need
to check `$app_path/$script` instead of only doing so for translations.
Without this it would fallback to `.js` extension even if a `.mjs` file exists.

Also tried make the code more selfe explaining.

Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
lib/private/Template/JSResourceLocator.php