Browse Source
Remove exception for settings app from svg controller
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/18095/head
Daniel Kesselberg
6 years ago
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with
0 additions and
6 deletions
-
core/Controller/SvgController.php
|
|
|
@ -90,12 +90,6 @@ class SvgController extends Controller { |
|
|
|
* @return DataDisplayResponse|NotFoundResponse |
|
|
|
*/ |
|
|
|
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); |
|
|
|
$appPath = substr($appRootPath, strlen($this->serverRoot)); |
|
|
|
|
|
|
|
|