steffen: server/kolab-webadmin/kolab-webadmin/php/admin/include mysmarty.php, 1.4, 1.5

cvs at intevation.de cvs at intevation.de
Fri Mar 18 12:50:02 CET 2005


Author: steffen

Update of /kolabrepository/server/kolab-webadmin/kolab-webadmin/php/admin/include
In directory doto:/tmp/cvs-serv1933/kolab-webadmin/php/admin/include

Modified Files:
	mysmarty.php 
Log Message:
Issue684 (lang switching on pages that already have GET variables. Solution not perfect, but it seems to work alright)

Index: mysmarty.php
===================================================================
RCS file: /kolabrepository/server/kolab-webadmin/kolab-webadmin/php/admin/include/mysmarty.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mysmarty.php	11 Mar 2005 14:00:26 -0000	1.4
+++ mysmarty.php	18 Mar 2005 11:50:00 -0000	1.5
@@ -45,6 +45,11 @@
 	//$this->register_outputfilter("count_bytes");
 
 	$this->assign( 'topdir', $topdir );
+	$this->assign( 'self_url', $_SERVER['REQUEST_URI'] );
+	$this->assign( 'lang_url', 
+				   strpos($_SERVER['REQUEST_URI'],'?')===false?
+				   ($_SERVER['REQUEST_URI'].'?lang='):
+				   ($_SERVER['REQUEST_URI'].'&lang=') );
 
 	// If you add a translation, 
 	// add the new language here





More information about the commits mailing list