diff options
author | Akhil <akhil@e.email> | 2023-10-13 13:38:03 +0530 |
---|---|---|
committer | Akhil <akhil@e.email> | 2023-10-19 14:39:29 +0530 |
commit | 5e20c3e7b97598a8e632d9c5ccdef7de7813a4e8 (patch) | |
tree | 23dbebcfc73d6c3f70aa7448f7a70f49a3b3db32 | |
parent | f103979b9f175aa240849ae289315d73e0fa1ca3 (diff) | |
download | nextcloud-server-5e20c3e7b97598a8e632d9c5ccdef7de7813a4e8.tar.gz nextcloud-server-5e20c3e7b97598a8e632d9c5ccdef7de7813a4e8.zip |
Add custom apps translation scripts and image path for consistency
Signed-off-by: Akhil <akhil@e.email>
-rw-r--r-- | lib/private/Template/JSResourceLocator.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/Template/JSResourceLocator.php b/lib/private/Template/JSResourceLocator.php index b283f0b610f..68a83fa4b73 100644 --- a/lib/private/Template/JSResourceLocator.php +++ b/lib/private/Template/JSResourceLocator.php @@ -60,8 +60,13 @@ class JSResourceLocator extends ResourceLocator { $found += $this->appendScriptIfExist($this->serverroot, $theme_dir.'core/'.$script); $found += $this->appendScriptIfExist($this->serverroot, $script); $found += $this->appendScriptIfExist($this->serverroot, $theme_dir.$script); - $found += $this->appendScriptIfExist($this->serverroot, 'apps/'.$script); - $found += $this->appendScriptIfExist($this->serverroot, $theme_dir.'apps/'.$script); + + foreach (\OC::$APPSROOTS as $appRoot) { + $dirName = basename($appRoot['path']); + $rootPath = dirname($appRoot['path']); + $found += $this->appendScriptIfExist($rootPath, $dirName.'/'.$script); + $found += $this->appendScriptIfExist($this->serverroot, $theme_dir.$dirName.'/'.$script); + } if ($found) { return; |