ajax work

This commit is contained in:
friendica
2014-09-06 00:37:15 -07:00
parent 7a9b1c4a77
commit 28b75b028d
8 changed files with 113 additions and 16 deletions

View File

@@ -2033,4 +2033,18 @@ function normalise_openid($s) {
return trim(str_replace(array('http://','https://'),array('',''),$s),'/');
}
// used in ajax endless scroll request to find out all the args that the master page was viewing
function extra_query_args() {
$s = '';
if(count($_REQUEST)) {
foreach($_REQUEST as $k => $v) {
// these are request vars we don't want to duplicate
if(! in_array($k, array('q','f','zid','page','PHPSESSID'))) {
$s .= '&' . $k . '=' . $v;
}
}
}
return $s;
}