From 8332ac88858402b6e0713f4922b65672eb050f1e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 15 May 2023 17:38:43 +0200 Subject: [PATCH] fix loading custom logo image Signed-off-by: Robin Appelman --- apps/theming/lib/Util.php | 2 +- apps/theming/tests/UtilTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/theming/lib/Util.php b/apps/theming/lib/Util.php index 789da394567e0..635c002611221 100644 --- a/apps/theming/lib/Util.php +++ b/apps/theming/lib/Util.php @@ -190,7 +190,7 @@ public function getAppIcon($app) { if ($this->config->getAppValue('theming', 'logoMime', '') !== '') { $logoFile = null; try { - $folder = $this->appData->getFolder('images'); + $folder = $this->appData->getFolder('global/images'); return $folder->getFile('logo'); } catch (NotFoundException $e) { } diff --git a/apps/theming/tests/UtilTest.php b/apps/theming/tests/UtilTest.php index 137038acb98dc..febf6c0a79e29 100644 --- a/apps/theming/tests/UtilTest.php +++ b/apps/theming/tests/UtilTest.php @@ -153,7 +153,7 @@ public function testGenerateRadioButtonBlack() { public function testGetAppIcon($app, $expected) { $this->appData->expects($this->any()) ->method('getFolder') - ->with('images') + ->with('global/images') ->willThrowException(new NotFoundException()); $this->appManager->expects($this->once()) ->method('getAppPath') @@ -180,7 +180,7 @@ public function testGetAppIconThemed() { ->willReturn($file); $this->appData->expects($this->once()) ->method('getFolder') - ->with('images') + ->with('global/images') ->willReturn($folder); $icon = $this->util->getAppIcon('noapplikethis'); $this->assertEquals($file, $icon);