fix to show title of disabled apps

This commit is contained in:
Ralf Becker 2003-09-22 10:58:05 +00:00
parent d1ffe11af9
commit 27497d4f21
2 changed files with 10 additions and 5 deletions

View File

@ -43,14 +43,19 @@
{
while ($this->db->next_record())
{
$apps[$this->db->f('app_name')] = array(
'title' => $GLOBALS['phpgw_info']['apps'][$this->db->f('app_name')],
'name' => $this->db->f('app_name'),
$app = $this->db->f('app_name');
$title = @$GLOBALS['phpgw_info']['apps'][$app]['title'];
if (empty($title))
{
$title = lang($app) == $app.'*' ? $app : lang($app);
}
$apps[$app] = array(
'title' => $title,
'name' => $app,
'status' => $this->db->f('app_enabled')
);
}
}
@reset($apps);
return $apps;
}

View File

@ -123,7 +123,7 @@
$tr_color = $this->nextmatchs->alternate_row_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>' : '&nbsp;');
$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>' : '&nbsp;');