mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
prefer icon from link-registry over navbar icon
This commit is contained in:
parent
58ae23c74c
commit
da91b260d5
@ -905,7 +905,16 @@ class calendar_uiviews extends calendar_ui
|
|||||||
$app_data = calendar_bo::integration_get_data($app,'icons');
|
$app_data = calendar_bo::integration_get_data($app,'icons');
|
||||||
if (is_null($app_data))
|
if (is_null($app_data))
|
||||||
{
|
{
|
||||||
$icons[] = Api\Html::image($app,'navbar'); // use navbar icon
|
if (($icon = Api\Link::get_registry($app,'icon')) &&
|
||||||
|
($icon = explode('/', $icon)))
|
||||||
|
{
|
||||||
|
|
||||||
|
$icons[] = Api\Html::image($icon[0], $icon[1]); // use icon from link registry
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$icons[] = Api\Html::image($app,'navbar'); // use navbar icon
|
||||||
|
}
|
||||||
}
|
}
|
||||||
elseif ($app_data)
|
elseif ($app_data)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user