From 03e18e60cd64c7967004a86663a507155dd02a93 Mon Sep 17 00:00:00 2001 From: ceb Date: Mon, 28 Jan 2002 01:52:36 +0000 Subject: [PATCH] added version to [phpgw_info][apps] array --- phpgwapi/inc/class.applications.inc.php | 57 ++++++++++++++----------- 1 file changed, 31 insertions(+), 26 deletions(-) diff --git a/phpgwapi/inc/class.applications.inc.php b/phpgwapi/inc/class.applications.inc.php index 45811fdd89..4f74f6be12 100755 --- a/phpgwapi/inc/class.applications.inc.php +++ b/phpgwapi/inc/class.applications.inc.php @@ -115,11 +115,12 @@ if ($check) { $this->data[$app[0]] = array( - 'title' => $GLOBALS['phpgw_info']['apps'][$app[0]]['title'], - 'name' => $app[0], - 'enabled' => True, - 'status' => $GLOBALS['phpgw_info']['apps'][$app[0]]['status'], - 'id' => $GLOBALS['phpgw_info']['apps'][$app[0]]['id'] + 'title' => $GLOBALS['phpgw_info']['apps'][$app[0]]['title'], + 'name' => $app[0], + 'enabled' => True, + 'status' => $GLOBALS['phpgw_info']['apps'][$app[0]]['status'], + 'id' => $GLOBALS['phpgw_info']['apps'][$app[0]]['id'], + 'version' => $GLOBALS['phpgw_info']['apps'][$app[0]]['version'] ); } } @@ -154,22 +155,24 @@ while($app = each($apps)) { $this->data[$app[1]] = array( - 'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'], - 'name' => $app[1], - 'enabled' => True, - 'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'], - 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'] + 'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'], + 'name' => $app[1], + 'enabled' => True, + 'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'], + 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'], + 'version' => $GLOBALS['phpgw_info']['apps'][$app[1]]['version'] ); } } elseif(gettype($apps)) { $this->data[$apps] = array( - 'title' => $GLOBALS['phpgw_info']['apps'][$apps]['title'], - 'name' => $apps, - 'enabled' => True, - 'status' => $GLOBALS['phpgw_info']['apps'][$apps]['status'], - 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'] + 'title' => $GLOBALS['phpgw_info']['apps'][$apps]['title'], + 'name' => $apps, + 'enabled' => True, + 'status' => $GLOBALS['phpgw_info']['apps'][$apps]['status'], + 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'], + 'version' => $GLOBALS['phpgw_info']['apps'][$app[1]]['version'] ); } reset($this->data); @@ -261,11 +264,12 @@ if ($this->is_system_enabled($app[1])) { $this->data[$app[1]] = array( - 'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'], - 'name' => $app[1], - 'enabled' => True, - 'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'], - 'id' => $GLOBALS['phpgw_info']['apps'][$app[1]]['id'] + 'title' => $GLOBALS['phpgw_info']['apps'][$app[1]]['title'], + 'name' => $app[1], + 'enabled' => True, + 'status' => $GLOBALS['phpgw_info']['apps'][$app[1]]['status'], + '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()) { $GLOBALS['phpgw_info']['apps'][$this->db->f('app_name')] = Array( - 'title' => $this->db->f('app_title'), - 'name' => $this->db->f('app_name'), - 'enabled' => True, - 'status' => $this->db->f('app_enabled'), - 'id' => intval($this->db->f('app_id')), - 'order' => intval($this->db->f('app_order')) + 'title' => $this->db->f('app_title'), + 'name' => $this->db->f('app_name'), + 'enabled' => True, + 'status' => $this->db->f('app_enabled'), + 'id' => intval($this->db->f('app_id')), + 'order' => intval($this->db->f('app_order')), + 'version' => $this->db->f('app_version') ); } }