Add query string to URL, if it exists
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Sep 2010 18:26:10 +0000 (12:26 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 2 Sep 2010 18:26:10 +0000 (12:26 -0600)
framework/Core/lib/Horde.php
framework/Core/lib/Horde/Core/Ajax/Imple.php

index ee7a6db..b5d02d3 100644 (file)
@@ -961,6 +961,10 @@ HTML;
             $url .= '/' . ltrim($webroot, '/') . '/' . $puri['path'];
         }
 
+        if (isset($puri['query'])) {
+            $url .= '?' . $puri['query'];
+        }
+
         $ob = new Horde_Url($url, $full);
 
         if (empty($GLOBALS['conf']['session']['use_only_cookies']) &&
index 360ffd5..6048f76 100644 (file)
@@ -66,8 +66,7 @@ abstract class Horde_Core_Ajax_Imple
             $qstring .= '/' . $key . '=' . rawurlencode($val);
         }
 
-        $url = Horde::getServiceLink('imple');
-        return Horde::url($url->url . '?' . $qstring, $full)->setRaw(true);
+        return Horde::url(Horde::getServiceLink('imple')->url . '?' . $qstring, $full)->setRaw(true);
     }
 
     /**