phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] admin/inc/class.soapplications.inc.php, 1.7


From: nomail
Subject: [Phpgroupware-cvs] admin/inc/class.soapplications.inc.php, 1.7
Date: Thu, 30 Dec 2004 08:38:14 +0100

Update of /admin/inc
Modified Files:
        Branch: 
          class.soapplications.inc.php

date: 2004/12/30 07:38:14;  author: skwashd;  state: Exp;  lines: +5 -5

Log Message:
new HEAD admin - sans GIFs
=====================================================================
Index: admin/inc/class.soapplications.inc.php
diff -u admin/inc/class.soapplications.inc.php:1.6 
admin/inc/class.soapplications.inc.php:1.7
--- admin/inc/class.soapplications.inc.php:1.6  Sat Oct 26 22:40:09 2002
+++ admin/inc/class.soapplications.inc.php      Thu Dec 30 07:38:14 2004
@@ -28,7 +28,7 @@
                        $this->db->next_record();
                        $app_info = array(
                                $this->db->f('app_name'),
-                               $this->db->f('app_name'),
+                               
$GLOBALS['phpgw_info']['apps'][$this->db->f('app_name')]['title'],
                                $this->db->f('app_enabled'),
                                $this->db->f('app_name'),
                                $this->db->f('app_order')
@@ -38,13 +38,13 @@
 
                function get_list()
                {
-                       $this->db->query('SELECT * FROM phpgw_applications 
WHERE app_enabled<3',__LINE__,__FILE__);
+                       $this->db->query('SELECT * FROM phpgw_applications 
WHERE app_enabled < 3',__LINE__,__FILE__);
                        if($this->db->num_rows())
                        {
                                while ($this->db->next_record())
                                {
                                        $apps[$this->db->f('app_name')] = array(
-                                               'title'         => 
str_replace('- ','-',ucwords(str_replace('_','- ',$this->db->f('app_name')))),
+                                               'title'  => 
lang($this->db->f('app_name')), 
                                                'name'   => 
$this->db->f('app_name'),
                                                'status' => 
$this->db->f('app_enabled')
                                        );
@@ -74,7 +74,7 @@
                function save($data)
                {
                        $sql = "UPDATE phpgw_applications SET app_name='" . 
addslashes($data['n_app_name']) . "',"
-                               . "app_enabled='" . $data['n_app_status'] . 
"',app_order='" . $data['app_order']
+                               . "app_enabled='" . $data['n_app_status'] . 
"',app_order='" . $data['app_order'] 
                                . "' WHERE app_name='" . $data['old_app_name'] 
. "'";
 
                        $this->db->query($sql,__LINE__,__FILE__);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]