[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.translation_sql.inc.php
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.translation_sql.inc.php |
Date: |
Fri, 22 Sep 2006 03:06:42 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Dave Hall <skwashd> 06/09/22 03:06:42
Modified files:
inc : class.translation_sql.inc.php
Log message:
fix data type and format sql
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.translation_sql.inc.php?cvsroot=phpgwapi&r1=1.27&r2=1.28
Patches:
Index: class.translation_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgwapi/phpgwapi/inc/class.translation_sql.inc.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- class.translation_sql.inc.php 9 Sep 2006 11:46:07 -0000 1.27
+++ class.translation_sql.inc.php 22 Sep 2006 03:06:42 -0000 1.28
@@ -7,13 +7,12 @@
* @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage application
- * @version $Id: class.translation_sql.inc.php,v 1.27 2006/09/09
11:46:07 skwashd Exp $
+ * @version $Id: class.translation_sql.inc.php,v 1.28 2006/09/22
03:06:42 skwashd Exp $
*/
/**
* define the maximal length of a message_id, all message_ids have to be
unique
* in this length, our column is varchar 255, but addslashes might add
some length.
- * @ignore
*/
define('MAX_MESSAGE_ID_LENGTH',230);
@@ -35,7 +34,7 @@
*/
var $loaded_from_shm;
- function translation($reset = '')
+ function translation($reset = false)
{
if ( !isset($GLOBALS['phpgw']->shm) ||
!is_object($GLOBALS['phpgw']->shm) )
{
@@ -70,7 +69,7 @@
function populate_shm()
{
- $sql = "SELECT * from phpgw_lang order by app_name
desc";
+ $sql = "SELECT * from phpgw_lang ORDER BY app_name
desc";
$GLOBALS['phpgw']->db->query($sql,__LINE__,__FILE__);
while ($GLOBALS['phpgw']->db->next_record())
{