mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #61100 from nextcloud/fix/fix-dist-css-support
fix: Correctly detect appid for dist css files
This commit is contained in:
commit
9028d13c85
1 changed files with 4 additions and 1 deletions
|
|
@ -384,7 +384,10 @@ class TemplateLayout {
|
|||
public function getAppNamefromPath(string $path): string|false {
|
||||
if ($path !== '') {
|
||||
$pathParts = explode('/', $path);
|
||||
if ($pathParts[0] === 'css') {
|
||||
if ($pathParts[0] === 'dist') {
|
||||
// Return the part before the dash in the file name
|
||||
return explode('-', \end($pathParts), 2)[0];
|
||||
} elseif ($pathParts[0] === 'css') {
|
||||
// This is a scss request
|
||||
return $pathParts[1];
|
||||
} elseif ($pathParts[0] === 'core') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue