Merge pull request #18095 from nextcloud/enh/svg-settings-app
Remove exception for settings app from svg controller
This commit is contained in:
commit
e4fe1fcc12
|
@ -90,12 +90,6 @@ class SvgController extends Controller {
|
||||||
* @return DataDisplayResponse|NotFoundResponse
|
* @return DataDisplayResponse|NotFoundResponse
|
||||||
*/
|
*/
|
||||||
public function getSvgFromApp(string $app, string $fileName, string $color = 'ffffff') {
|
public function getSvgFromApp(string $app, string $fileName, string $color = 'ffffff') {
|
||||||
|
|
||||||
if ($app === 'settings') {
|
|
||||||
$path = $this->serverRoot . "/settings/img/$fileName.svg";
|
|
||||||
return $this->getSvg($path, $color, $fileName);
|
|
||||||
}
|
|
||||||
|
|
||||||
$appRootPath = $this->appManager->getAppPath($app);
|
$appRootPath = $this->appManager->getAppPath($app);
|
||||||
$appPath = substr($appRootPath, strlen($this->serverRoot));
|
$appPath = substr($appRootPath, strlen($this->serverRoot));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue