Remove exception for settings app from svg controller

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-11-24 17:15:06 +01:00
parent 4f2837017c
commit 957c0df01b
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 0 additions and 6 deletions

View File

@ -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));