added version to [phpgw_info][apps] array

This commit is contained in:
ceb 2002-01-28 01:52:36 +00:00
parent 1d5c3853f9
commit 03e18e60cd

View File

@ -115,11 +115,12 @@
if ($check) if ($check)
{ {
$this->data[$app[0]] = array( $this->data[$app[0]] = array(
'title' => $GLOBALS['phpgw_info']['apps'][$app[0]]['title'], 'title' => $GLOBALS['phpgw_info']['apps'][$app[0]]['title'],
'name' => $app[0], 'name' => $app[0],
'enabled' => True, 'enabled' => True,
'status' => $GLOBALS['phpgw_info']['apps'][$app[0]]['status'], 'status' => $GLOBALS['phpgw_info']['apps'][$app[0]]['status'],
'id' => $GLOBALS['phpgw_info']['apps'][$app[0]]['id'] 'id' => $GLOBALS['phpgw_info']['apps'][$app[0]]['id'],
'version' => $GLOBALS['phpgw_info']['apps'][$app[0]]['version']
); );
} }
} }
@ -154,22 +155,24 @@
while($app = each($apps)) while($app = each($apps))
{ {
$this->data[$app[1]] = array( $this->data[$app[1]] = array(
'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'], 'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'],
'name' => $app[1], 'name' => $app[1],
'enabled' => True, 'enabled' => True,
'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'], 'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'],
'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'] 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'],
'version' => $GLOBALS['phpgw_info']['apps'][$app[1]]['version']
); );
} }
} }
elseif(gettype($apps)) elseif(gettype($apps))
{ {
$this->data[$apps] = array( $this->data[$apps] = array(
'title' => $GLOBALS['phpgw_info']['apps'][$apps]['title'], 'title' => $GLOBALS['phpgw_info']['apps'][$apps]['title'],
'name' => $apps, 'name' => $apps,
'enabled' => True, 'enabled' => True,
'status' => $GLOBALS['phpgw_info']['apps'][$apps]['status'], 'status' => $GLOBALS['phpgw_info']['apps'][$apps]['status'],
'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'] 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'],
'version' => $GLOBALS['phpgw_info']['apps'][$app[1]]['version']
); );
} }
reset($this->data); reset($this->data);
@ -261,11 +264,12 @@
if ($this->is_system_enabled($app[1])) if ($this->is_system_enabled($app[1]))
{ {
$this->data[$app[1]] = array( $this->data[$app[1]] = array(
'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'], 'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'],
'name' => $app[1], 'name' => $app[1],
'enabled' => True, 'enabled' => True,
'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'], 'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'],
'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'] 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'],
'version' => $GLOBALS['phpgw_info']['apps'][$app[1]]['version']
); );
} }
} }
@ -289,12 +293,13 @@
while ($this->db->next_record()) while ($this->db->next_record())
{ {
$GLOBALS['phpgw_info']['apps'][$this->db->f('app_name')] = Array( $GLOBALS['phpgw_info']['apps'][$this->db->f('app_name')] = Array(
'title' => $this->db->f('app_title'), 'title' => $this->db->f('app_title'),
'name' => $this->db->f('app_name'), 'name' => $this->db->f('app_name'),
'enabled' => True, 'enabled' => True,
'status' => $this->db->f('app_enabled'), 'status' => $this->db->f('app_enabled'),
'id' => intval($this->db->f('app_id')), 'id' => intval($this->db->f('app_id')),
'order' => intval($this->db->f('app_order')) 'order' => intval($this->db->f('app_order')),
'version' => $this->db->f('app_version')
); );
} }
} }