Browse Source

preliminary ajax comment setups

pull/1/head
Friendika 11 years ago
parent
commit
3d9845f4a4
  1. 4
      mod/item.php
  2. 2
      mod/network.php
  3. 2
      mod/profile.php
  4. 1
      view/comment_item.tpl

4
mod/item.php

@ -490,7 +490,9 @@ function item_post(&$a) {
}
}
goaway($a->get_baseurl() . "/" . $_POST['return'] );
if((x($_POST,'return')) && strlen($_POST['return']))
goaway($a->get_baseurl() . "/" . $_POST['return'] );
killme();
// NOTREACHED
}

2
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'],

2
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'],

1
view/comment_item.tpl

@ -18,4 +18,5 @@
<div class="comment-edit-end"></div>
</form>
</div>
Loading…
Cancel
Save