Browse Source
Add custom apps translation scripts and image path for consistency
Signed-off-by: Akhil <akhil@e.email>
pull/40898/head
Akhil
2 years ago
No known key found for this signature in database
GPG Key ID: A8AB680DBB7F3D45
1 changed files with
7 additions and
2 deletions
-
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; |
|
|
|
|