Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d3dab2e authored by Ronak Patel's avatar Ronak Patel
Browse files

app.svg icon 404 issue

parent ea204746
Loading
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
--- lib/private/NavigationManager.php	2024-01-18 23:59:45
+++ lib/private/NavigationManager-new.php	2024-01-18 23:59:36
@@ -318,7 +318,7 @@
--- /Users/ronak/Desktop/murena/nextcloud/ecloud_dev_example/volumes/nextcloud/html/lib/private/NavigationManager.php	2024-01-18 23:59:45
+++ /Users/ronak/Desktop/murena/nextcloud/ecloud_dev_example/volumes/nextcloud/html/lib/private/NavigationManager-new.php	2024-01-19 00:13:16
@@ -318,10 +318,12 @@
 				$order = isset($nav['order']) ? $nav['order'] : 100;
 				$type = $nav['type'];
 				$route = !empty($nav['route']) ? $this->urlGenerator->linkToRoute($nav['route']) : '';
-				$icon = isset($nav['icon']) ? $nav['icon'] : 'app.svg';
+				$icon = isset($nav['icon']) ? $nav['icon'] : "$app.svg";
+				$icon = isset($nav['icon']) ? $nav['icon'] : '';
 				foreach ([$icon, "$app.svg"] as $i) {
 					try {
 						$icon = $this->urlGenerator->imagePath($app, $i);
-						$icon = $this->urlGenerator->imagePath($app, $i);
+						if($icon !== ''){
+							$icon = $this->urlGenerator->imagePath($app, $i);
+						}
 						break;
 					} catch (\RuntimeException $ex) {
 						// no icon? - ignore it then