add loadtime search to channel and fix it for home. display and search need further investigation

This commit is contained in:
friendica
2015-03-21 16:46:28 -07:00
parent 85dd08427c
commit a2e3ca6fd8
7 changed files with 55 additions and 10 deletions

View File

@@ -27,12 +27,13 @@ function network_init(&$a) {
function network_content(&$a, $update = 0, $load = false) {
if(! local_channel()) {
$_SESSION['return_url'] = $a->query_string;
return login(false);
}
if($load)
$_SESSION['loadtime'] = datetime_convert();
$arr = array('query' => $a->query_string);
@@ -416,8 +417,6 @@ function network_content(&$a, $update = 0, $load = false) {
if($load) {
$_SESSION['loadtime'] = datetime_convert();
// Fetch a page full of parent items for this page
$r = q("SELECT distinct item.id AS item_id, $ordering FROM item