[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.setup_translation.inc.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.setup_translation.inc.php |
Date: |
Thu, 02 Nov 2006 09:56:05 +0000 |
CVSROOT: /sources/phpgwapi
Module name: phpgwapi
Changes by: Sigurd Nes <sigurdne> 06/11/02 09:56:05
Modified files:
inc : class.setup_translation.inc.php
Log message:
clean out lang from shm when dropping lang
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.setup_translation.inc.php?cvsroot=phpgwapi&r1=1.8&r2=1.9
Patches:
Index: class.setup_translation.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.setup_translation.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- class.setup_translation.inc.php 1 Oct 2006 13:45:44 -0000 1.8
+++ class.setup_translation.inc.php 2 Nov 2006 09:56:05 -0000 1.9
@@ -7,7 +7,7 @@
* @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General
Public License
* @package phpgwapi
* @subpackage application
- * @version $Id: class.setup_translation.inc.php,v 1.8 2006/10/01
13:45:44 skwashd Exp $
+ * @version $Id: class.setup_translation.inc.php,v 1.9 2006/11/02
09:56:05 sigurdne Exp $
*/
if (!defined('MAX_MESSAGE_ID_LENGTH'))
@@ -150,7 +150,22 @@
$GLOBALS['phpgw_setup']->db->next_record();
if($GLOBALS['phpgw_setup']->db->f(0))
{
+ if(function_exists('sem_get'))
+ {
+ if ( !isset($GLOBALS['phpgw']->shm) ||
!is_object($GLOBALS['phpgw']->shm) )
+ {
+ $GLOBALS['phpgw']->shm =
CreateObject('phpgwapi.shm');
+ }
+
+
$GLOBALS['phpgw_setup']->db->query("SELECT lang FROM phpgw_lang WHERE
app_name='$appname'",__LINE__,__FILE__);
+ while
($GLOBALS['phpgw_setup']->db->next_record())
+ {
+
$GLOBALS['phpgw']->shm->delete_key('lang_' .
$GLOBALS['phpgw_setup']->db->f('lang'));
+ }
+ }
+
$GLOBALS['phpgw_setup']->db->query("DELETE FROM
phpgw_lang WHERE app_name='$appname'",__LINE__,__FILE__);
+
return True;
}
return False;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc class.setup_translation.inc.php,
Sigurd Nes <=