fix: Fix loading styles from core/css/

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2023-02-20 09:28:30 +01:00
parent f3d3dfa075
commit 4cebfa95e6
No known key found for this signature in database
GPG key ID: 4C614C6ED2CDE6DF

View file

@ -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;