diff options
author | friendica <info@friendica.com> | 2014-09-06 00:37:15 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-06 00:37:15 -0700 |
commit | 28b75b028dcb1633a9407a5a5c79e5d2423e18a5 (patch) | |
tree | 7d7e061cd6fb3c1c92ecdf086c668e500f4e93b1 /include/text.php | |
parent | 7a9b1c4a77f279b04fa710df25aa289d7b2b47c1 (diff) | |
download | volse-hubzilla-28b75b028dcb1633a9407a5a5c79e5d2423e18a5.tar.gz volse-hubzilla-28b75b028dcb1633a9407a5a5c79e5d2423e18a5.tar.bz2 volse-hubzilla-28b75b028dcb1633a9407a5a5c79e5d2423e18a5.zip |
ajax work
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 50c68b6b2..4fe9f9cde 100644 --- a/include/text.php +++ b/include/text.php @@ -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; +}
\ No newline at end of file |