aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/build_query.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-14 01:02:03 -0800
committerfriendica <info@friendica.com>2012-12-14 01:02:03 -0800
commit9d96cb37a036988a64e93fbcc8f8b497de4987a0 (patch)
treea9dc5e54c76932620e5d76d3c6403ac100cf77d3 /view/tpl/build_query.tpl
parentd39fb9b1d5208b18da364873d10f51e23b94bd7e (diff)
downloadvolse-hubzilla-9d96cb37a036988a64e93fbcc8f8b497de4987a0.tar.gz
volse-hubzilla-9d96cb37a036988a64e93fbcc8f8b497de4987a0.tar.bz2
volse-hubzilla-9d96cb37a036988a64e93fbcc8f8b497de4987a0.zip
pass module name to build_cmd, so we can use it elsewhere
Diffstat (limited to 'view/tpl/build_query.tpl')
-rw-r--r--view/tpl/build_query.tpl6
1 files changed, 2 insertions, 4 deletions
diff --git a/view/tpl/build_query.tpl b/view/tpl/build_query.tpl
index 25b370e69..4a2b0f60d 100644
--- a/view/tpl/build_query.tpl
+++ b/view/tpl/build_query.tpl
@@ -1,11 +1,8 @@
<script>
- var bParam_cmd = "$baseurl/update_network";
+ var bParam_cmd = "$baseurl/update_$pgtype";
- var bParam_wall = $wall;
- if(bParam_wall) { bParam_cmd = "$baseurl/update_channel"; }
-
var bParam_uid = $uid;
var bParam_gid = $gid;
var bParam_cid = $cid;
@@ -17,6 +14,7 @@
var bParam_spam = $spam;
var bParam_new = $nouveau;
var bParam_page = $page;
+ var bParam_wall = $wall;
var bParam_search = "$search";
var bParam_order = "$order";