mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 05:29:13 +01:00
Calendar: Allow calendar integration to specify a caption, not just use app name
This commit is contained in:
parent
4e5f68f97c
commit
c7020c79d8
@ -406,7 +406,7 @@ class calendar_uiviews extends calendar_ui
|
|||||||
$img = self::integration_get_icons($app, null, [])[0];
|
$img = self::integration_get_icons($app, null, [])[0];
|
||||||
preg_match('/<img src=\"(.*?)\".*\/>/', $img, $results);
|
preg_match('/<img src=\"(.*?)\".*\/>/', $img, $results);
|
||||||
$actions['integration_'.$app] = array(
|
$actions['integration_'.$app] = array(
|
||||||
'caption' => $app,
|
'caption' => $data['selects']['caption'] ?? $app,
|
||||||
'iconUrl' => $results[1] ?: "$app\navbar",
|
'iconUrl' => $results[1] ?: "$app\navbar",
|
||||||
'checkbox' => true,
|
'checkbox' => true,
|
||||||
'hint' => lang("show %1 from %2", lang(Link::get_registry($app, 'entries') ?: 'entries'), lang(Link::get_registry($app, 'name'))),
|
'hint' => lang("show %1 from %2", lang(Link::get_registry($app, 'entries') ?: 'entries'), lang(Link::get_registry($app, 'name'))),
|
||||||
|
Loading…
Reference in New Issue
Block a user