fix not return app-placeholder icon, if app is not installed or has not navbar icon, also changed placeholder from "app" to "app-indicator"

This commit is contained in:
ralf 2024-09-26 14:59:52 +02:00
parent 1f23433506
commit 7211dc789e

View File

@ -179,7 +179,7 @@ class Image
'mouse_scroll_lr' => 'arrows',
'mouse_scroll_ud' => 'arrow-down-up',
'move' => 'scissors',
'navbar' => 'app',
'navbar' => 'app-indicator',
'new' => 'file-earmark-plus',
'new_leaf' => 'file-earmark-plus',
'next' => 'arrow-bar-right',
@ -430,7 +430,8 @@ class Image
$url = $webserver_url.$image_map['vfs'][$image.$extension];
}
// then our globals lookup table $global2bootstrap, but not for $app/navbar
elseif(($image !== 'navbar' || $app === 'api') && (isset($image_map['global'][$app.'/'.$image]) || isset($image_map['global'][$image])))
elseif(($image !== 'navbar' || $app === 'api' || !isset($image_map[$app][$image])) &&
(isset($image_map['global'][$app.'/'.$image]) || isset($image_map['global'][$image])))
{
$image = $image_map['global'][$app.'/'.$image] ?? $image_map['global'][$image];
// allow redirects like "calendar/yearview" --> "calendar/bi-12-square"