We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dist
1 parent 2139a08 commit d33fadcCopy full SHA for d33fadc
lib/private/Template/CSSResourceLocator.php
@@ -25,13 +25,15 @@ public function __construct(
25
}
26
27
public function doFind(string $resource): void {
28
- $parts = explode('/', $resource, 2);
+ $parts = explode('/', $resource);
29
if (count($parts) < 2) {
30
return;
31
32
- [$app,$subpath] = $parts;
+ $app = $parts[0];
33
+ $filename = $parts[array_key_last($parts)];
34
if ($this->appendIfExist($this->serverroot, $resource . '.css')
35
|| $this->appendIfExist($this->serverroot, 'core/' . $resource . '.css')
36
+ || $this->appendIfExist($this->serverroot, 'dist/' . $app . '-' . $filename . '.css')
37
) {
38
39
0 commit comments