summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-20 09:28:30 +0100
committerJulius Härtl <jus@bitgrid.net>2023-02-20 09:28:30 +0100
commit4cebfa95e68e95afd9f6c038ded32e68b7db1cd2 (patch)
tree718a370b9de5b5b9c890f8c8015a2ad05890f757 /lib
parentf3d3dfa075ced44622b5a84387d95281def3b5a3 (diff)
downloadnextcloud-server-4cebfa95e68e95afd9f6c038ded32e68b7db1cd2.tar.gz
nextcloud-server-4cebfa95e68e95afd9f6c038ded32e68b7db1cd2.zip
fix: Fix loading styles from core/css/
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/CSSResourceLocator.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php
index 5047b3e906f..4ebe054ca7b 100644
--- a/lib/private/Template/CSSResourceLocator.php
+++ b/lib/private/Template/CSSResourceLocator.php
@@ -43,8 +43,7 @@ class CSSResourceLocator extends ResourceLocator {
*/
public function doFind($style) {
$app = substr($style, 0, strpos($style, '/'));
- if (strpos($style, '3rdparty') === 0
- && $this->appendIfExist($this->serverroot, $style.'.css')
+ if ($this->appendIfExist($this->serverroot, $style.'.css')
|| $this->appendIfExist($this->serverroot, 'core/'.$style.'.css')
) {
return;