aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--mod/network.php1
-rw-r--r--view/tpl/build_query.tpl6
2 files changed, 3 insertions, 4 deletions
diff --git a/mod/network.php b/mod/network.php
index 4fd7ad200..e19871602 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -497,6 +497,7 @@ function network_content(&$a, $update = 0, $load = false) {
$a->page['htmlhead'] .= replace_macros(get_markup_template("build_query.tpl"),array(
'$baseurl' => z_root(),
+ '$pgtype' => 'network',
'$uid' => ((local_user()) ? local_user() : '0'),
'$gid' => (($gid) ? $gid : '0'),
'$cid' => (($cid) ? $cid : '0'),
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";