fix: Fix loading styles from core/css/

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/36780/head
Julius Härtl 3 years ago
parent f3d3dfa075
commit 4cebfa95e6
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 3
      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;

Loading…
Cancel
Save