aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";