Merge pull request #18095 from nextcloud/enh/svg-settings-app

Remove exception for settings app from svg controller
This commit is contained in:
Roeland Jago Douma 2019-11-25 08:37:09 +01:00 committed by GitHub
commit e4fe1fcc12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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));