mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
fix to show title of disabled apps
This commit is contained in:
parent
d1ffe11af9
commit
27497d4f21
@ -43,14 +43,19 @@
|
|||||||
{
|
{
|
||||||
while ($this->db->next_record())
|
while ($this->db->next_record())
|
||||||
{
|
{
|
||||||
$apps[$this->db->f('app_name')] = array(
|
$app = $this->db->f('app_name');
|
||||||
'title' => $GLOBALS['phpgw_info']['apps'][$this->db->f('app_name')],
|
$title = @$GLOBALS['phpgw_info']['apps'][$app]['title'];
|
||||||
'name' => $this->db->f('app_name'),
|
if (empty($title))
|
||||||
|
{
|
||||||
|
$title = lang($app) == $app.'*' ? $app : lang($app);
|
||||||
|
}
|
||||||
|
$apps[$app] = array(
|
||||||
|
'title' => $title,
|
||||||
|
'name' => $app,
|
||||||
'status' => $this->db->f('app_enabled')
|
'status' => $this->db->f('app_enabled')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@reset($apps);
|
|
||||||
return $apps;
|
return $apps;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@
|
|||||||
$tr_color = $this->nextmatchs->alternate_row_color($tr_color);
|
$tr_color = $this->nextmatchs->alternate_row_color($tr_color);
|
||||||
|
|
||||||
$GLOBALS['phpgw']->template->set_var('tr_color',$tr_color);
|
$GLOBALS['phpgw']->template->set_var('tr_color',$tr_color);
|
||||||
$GLOBALS['phpgw']->template->set_var('name',$GLOBALS['phpgw_info']['apps'][$app['name']]['title']);
|
$GLOBALS['phpgw']->template->set_var('name',$app['title']);
|
||||||
|
|
||||||
$GLOBALS['phpgw']->template->set_var('edit',$can_edit ? '<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.edit&app_name=' . urlencode($app['name'])) . '&start='.$start.'"> ' . lang('Edit') . ' </a>' : ' ');
|
$GLOBALS['phpgw']->template->set_var('edit',$can_edit ? '<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.edit&app_name=' . urlencode($app['name'])) . '&start='.$start.'"> ' . lang('Edit') . ' </a>' : ' ');
|
||||||
$GLOBALS['phpgw']->template->set_var('delete',$can_delete ? '<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.delete&app_name=' . urlencode($app['name'])) . '&start='.$start.'"> ' . lang('Delete') . ' </a>' : ' ');
|
$GLOBALS['phpgw']->template->set_var('delete',$can_delete ? '<a href="' . $GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiapplications.delete&app_name=' . urlencode($app['name'])) . '&start='.$start.'"> ' . lang('Delete') . ' </a>' : ' ');
|
||||||
|
Loading…
Reference in New Issue
Block a user