aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php14
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