[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: |
Thu, 04 Jan 2007 05:18:37 +0000 |
CVSROOT: /sources/phpgwapi
Module name: phpgwapi
Changes by: Dave Hall <skwashd> 07/01/04 05:18:37
Modified files:
inc : class.translation_sql.inc.php
Log message:
make get_installed_langs return an array consistently and add docs to it
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.translation_sql.inc.php?cvsroot=phpgwapi&r1=1.30&r2=1.31
Patches:
Index: class.translation_sql.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.translation_sql.inc.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- class.translation_sql.inc.php 22 Nov 2006 12:38:35 -0000 1.30
+++ class.translation_sql.inc.php 4 Jan 2007 05:18:37 -0000 1.31
@@ -7,7 +7,7 @@
* @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.30 2006/11/22
12:38:35 sigurdne Exp $
+ * @version $Id: class.translation_sql.inc.php,v 1.31 2007/01/04
05:18:37 skwashd Exp $
*/
/**
@@ -171,13 +171,15 @@
}
}
+ /**
+ * Get a list of installed languages
+ *
+ * @return array list of languages - count() == 0 none installed
(shouldn't happen - EVER!)
+ */
function get_installed_langs()
{
+ $langs = array();
$GLOBALS['phpgw']->db->query("SELECT DISTINCT
l.lang,ln.lang_name FROM phpgw_lang l,phpgw_languages ln WHERE l.lang =
ln.lang_id",__LINE__,__FILE__);
- if (!$GLOBALS['phpgw']->db->num_rows())
- {
- return False;
- }
while ($GLOBALS['phpgw']->db->next_record())
{
$langs[$GLOBALS['phpgw']->db->f('lang')] =
$GLOBALS['phpgw']->db->f('lang_name');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc class.translation_sql.inc.php,
Dave Hall <=