[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc/class.translation_sql.inc.php, 1.8.4.6.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc/class.translation_sql.inc.php, 1.8.4.6.2.1 |
Date: |
Thu, 30 Dec 2004 05:51:47 +0100 |
Update of /phpgwapi/inc
Modified Files:
Branch: proposed-0_9_18-branch
class.translation_sql.inc.php
date: 2004/12/30 04:51:47; author: skwashd; state: Exp; lines: +4 -8
Log Message:
switch to ADOdb
=====================================================================
Index: phpgwapi/inc/class.translation_sql.inc.php
diff -u phpgwapi/inc/class.translation_sql.inc.php:1.8.4.6
phpgwapi/inc/class.translation_sql.inc.php:1.8.4.6.2.1
--- phpgwapi/inc/class.translation_sql.inc.php:1.8.4.6 Mon Mar 8 23:11:23 2004
+++ phpgwapi/inc/class.translation_sql.inc.php Thu Dec 30 04:51:47 2004
@@ -59,14 +59,10 @@
$sql .= ' order by app_name desc';
}
- $db = $GLOBALS['phpgw']->db;
- $db->query($sql,__LINE__,__FILE__);
- while ($db->next_record())
+ $GLOBALS['phpgw']->db->query($sql,__LINE__,__FILE__);
+ while ($GLOBALS['phpgw']->db->next_record())
{
- // directly access of the Record is not the best design, but improves
- // speed of the whole function by 25%
- $GLOBALS['lang'][strtolower($db->Record['message_id'])] =
$db->Record['content'];
- // $GLOBALS['lang'][strtolower($db->f('message_id'))] =
$db->f('content');
+
$GLOBALS['lang'][strtolower($GLOBALS['phpgw']->db->resultSet->fields('message_id'))]
= $GLOBALS['phpgw']->db->resultSet->fields('content');
}
}
$ret = $key.'*'; // save key if we dont find a
translation
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc/class.translation_sql.inc.php, 1.8.4.6.2.1,
nomail <=