aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-14 16:00:50 -0700
committerfriendica <info@friendica.com>2012-06-14 16:00:50 -0700
commit244d7f9a8f3921d4c15812ce6f57a2c0e882e2fa (patch)
tree9e404e7c545cc73b1db6f4feadf702de6fa07723 /boot.php
parente68e9ec5f49aeaec550dfe46aa26ad69c4e1e785 (diff)
parentf66ae301b8ff154e009afd02258551787cae683c (diff)
downloadvolse-hubzilla-244d7f9a8f3921d4c15812ce6f57a2c0e882e2fa.tar.gz
volse-hubzilla-244d7f9a8f3921d4c15812ce6f57a2c0e882e2fa.tar.bz2
volse-hubzilla-244d7f9a8f3921d4c15812ce6f57a2c0e882e2fa.zip
Merge pull request #334 from fabrixxm/master
Fix bug 453 and small update to quattro theme
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index bf4e59293..e535c171f 100644
--- a/boot.php
+++ b/boot.php
@@ -1577,3 +1577,30 @@ function zrl($s,$force = false) {
return $s . $achar . 'zrl=' . urlencode($mine);
return $s;
}
+
+/**
+* returns querystring as string from a mapped array
+*
+* @param params Array
+* @return string
+*/
+function build_querystring($params, $name=null) {
+ $ret = "";
+ foreach($params as $key=>$val) {
+ if(is_array($val)) {
+ if($name==null) {
+ $ret .= build_querystring($val, $key);
+ } else {
+ $ret .= build_querystring($val, $name."[$key]");
+ }
+ } else {
+ $val = urlencode($val);
+ if($name!=null) {
+ $ret.=$name."[$key]"."=$val&";
+ } else {
+ $ret.= "$key=$val&";
+ }
+ }
+ }
+ return $ret;
+}