phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] etemplate/inc class.html.inc.php


From: Caeies
Subject: [Phpgroupware-cvs] etemplate/inc class.html.inc.php
Date: Sun, 26 Feb 2006 21:29:50 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    etemplate
Branch:         
Changes by:     Caeies <address@hidden> 06/02/26 21:29:50

Modified files:
        inc            : class.html.inc.php 

Log message:
        hack to make et->link phpgw->link compliant

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/etemplate/inc/class.html.inc.php.diff?tr1=1.22&tr2=1.23&r1=text&r2=text

Patches:
Index: etemplate/inc/class.html.inc.php
diff -u etemplate/inc/class.html.inc.php:1.22 
etemplate/inc/class.html.inc.php:1.23
--- etemplate/inc/class.html.inc.php:1.22       Sun Jul  6 11:01:16 2003
+++ etemplate/inc/class.html.inc.php    Sun Feb 26 21:29:50 2006
@@ -10,7 +10,7 @@
        *  option) any later version.                                           
   *
        
\**************************************************************************/
 
-       /* $Id: class.html.inc.php,v 1.22 2003/07/06 11:01:16 ralfbecker Exp $ 
*/
+       /* $Id: class.html.inc.php,v 1.23 2006/02/26 21:29:50 Caeies Exp $ */
 
 class html
 {
@@ -170,12 +170,28 @@
        {
                if (!is_array($vars))
                {
-                       $vars = explode('&',$vars);
+                       if(!empty($vars))
+                       {
+                               $vars = explode('&',$vars);
+                       }
+                       else
+                       {
+                               $vars = array();
+                       }
                }
                list($url,$v) = explode('?',$url);      // url may contain 
additional vars
                if ($v)
                {
                        $vars += explode('&',$v);
+                       foreach($vars as $k => $vv)
+                       {
+                               $tmp = explode('=', $vv);
+                               if(count($tmp) == 2)
+                               {
+                                       $vars[$tmp[0]] = $tmp[1];
+                                       unset($vars[$k]);
+                               }
+                       }
                }
                return $GLOBALS['phpgw']->link($url,$vars);
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]