mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 16:19:06 -04:00
Merge pull request #6452 from lukanetconsult/hotfix/issue-6415-undefined-variable
Fix undefined variable $tmpRoot
This commit is contained in:
commit
8ef4fcb4b7
1 changed files with 5 additions and 5 deletions
|
|
@ -128,14 +128,14 @@ class CSSResourceLocator extends ResourceLocator {
|
|||
'webRoot' => $webRoot,
|
||||
'throw' => $throw ? 'true' : 'false'
|
||||
]);
|
||||
|
||||
if ($throw) {
|
||||
throw new ResourceNotFoundException($file, $webRoot);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($throw && $tmpRoot === '/') {
|
||||
throw new ResourceNotFoundException($file, $webRoot);
|
||||
}
|
||||
|
||||
$this->resources[] = array($tmpRoot, $webRoot, $file);
|
||||
$this->resources[] = array($webRoot? : '/', $webRoot, $file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue