aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-14 04:46:49 -0800
committerFriendika <info@friendika.com>2011-02-14 04:46:49 -0800
commitb87ddbd58aa2739521282f44a463be53c6397231 (patch)
treeea47d4ca6df492beaf1ffdc6fdfb4159513e9893 /mod
parentf37caa0999b4d9a7a1ef92b7996d3bec00150b2b (diff)
parentdf209907536a3c5e093b8ae95070ca9941c6c797 (diff)
downloadvolse-hubzilla-b87ddbd58aa2739521282f44a463be53c6397231.tar.gz
volse-hubzilla-b87ddbd58aa2739521282f44a463be53c6397231.tar.bz2
volse-hubzilla-b87ddbd58aa2739521282f44a463be53c6397231.zip
Merge branch 'ajaxcomms'
Conflicts: view/comment_item.tpl
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php7
-rw-r--r--mod/network.php2
-rw-r--r--mod/profile.php2
3 files changed, 8 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index a83373f59..2cc2b9eb2 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -490,7 +490,12 @@ function item_post(&$a) {
}
}
- goaway($a->get_baseurl() . "/" . $_POST['return'] );
+ if((x($_POST,'return')) && strlen($_POST['return']))
+ goaway($a->get_baseurl() . "/" . $_POST['return'] );
+
+ $json = array('success' => 1);
+ echo json_encode($json);
+ killme();
// NOTREACHED
}
diff --git a/mod/network.php b/mod/network.php
index f11db45a8..f09b302e9 100644
--- a/mod/network.php
+++ b/mod/network.php
@@ -340,7 +340,7 @@ function network_content(&$a, $update = 0) {
if($item['last-child']) {
$comment = replace_macros($cmnt_tpl,array(
- '$return_path' => $_SESSION['return_url'],
+ '$return_path' => '', // $_SESSION['return_url'],
'$type' => 'net-comment',
'$id' => $item['item_id'],
'$parent' => $item['parent'],
diff --git a/mod/profile.php b/mod/profile.php
index 8ec29d382..57abc479d 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -293,7 +293,7 @@ function profile_content(&$a, $update = 0) {
}
if($item['last-child']) {
$comment = replace_macros($cmnt_tpl,array(
- '$return_path' => $_SESSION['return_url'],
+ '$return_path' => '', // $_SESSION['return_url'],
'$type' => 'wall-comment',
'$id' => $item['item_id'],
'$parent' => $item['parent'],