Threaded items in every page concerned. Some code cleanup.

This commit is contained in:
Domovoy 2012-08-03 21:55:17 +02:00
commit ea7db7b7a8
6 changed files with 18 additions and 386 deletions

View file

@ -115,7 +115,7 @@ function display_content(&$a) {
$items = conv_sort($r,"`commented`");
$o .= conversation($a,$items,'display', false, false, true);
$o .= conversation($a,$items,'display', false);
}
else {

View file

@ -601,7 +601,7 @@ function item_post(&$a) {
if($preview) {
require_once('include/conversation.php');
$o = conversation($a,array(array_merge($contact_record,$datarray)),'search',false,true);
$o = conversation($a,array(array_merge($contact_record,$datarray)),'search');
logger('preview: ' . $o);
echo json_encode(array('preview' => $o));
killme();

View file

@ -687,7 +687,7 @@ function network_content(&$a, $update = 0) {
$mode = (($nouveau) ? 'network-new' : 'network');
$o .= conversation($a,$items,$mode,$update, false, true);
$o .= conversation($a,$items,$mode,$update);
if(! $update) {
if(! get_pconfig(local_user(),'system','alt_pager')) {

View file

@ -133,7 +133,7 @@ function notes_content(&$a,$update = false) {
if(count($r)) {
$items = conv_sort($r,"`commented`");
$o .= conversation($a,$items,'notes',$update, false, true);
$o .= conversation($a,$items,'notes',$update);
}
}

View file

@ -310,7 +310,7 @@ function profile_content(&$a, $update = 0) {
);
}
$o .= conversation($a,$items,'profile',$update, false, true);
$o .= conversation($a,$items,'profile',$update);
if(! $update) {
if(! get_pconfig($a->profile['profile_uid'],'system','alt_pager')) {