aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-06 00:48:00 -0700
committerfriendica <info@friendica.com>2014-09-06 00:48:00 -0700
commitb9f221637bc98cc64bcbc6becb4ffa4a2706cb87 (patch)
tree8cd376176cd2bd4a4d4ffd2ec86e50d3f71500ae
parent8c63bb40a79dc99b2ae1b2d73b716594e741502b (diff)
downloadvolse-hubzilla-b9f221637bc98cc64bcbc6becb4ffa4a2706cb87.tar.gz
volse-hubzilla-b9f221637bc98cc64bcbc6becb4ffa4a2706cb87.tar.bz2
volse-hubzilla-b9f221637bc98cc64bcbc6becb4ffa4a2706cb87.zip
and more ajax work
-rw-r--r--mod/directory.php2
-rw-r--r--mod/photos.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/directory.php b/mod/directory.php
index c2a71b680..d6dc8627c 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -216,7 +216,7 @@ function directory_content(&$a) {
}
else {
- $o .= "<script> var page_query = '" . $a->query_string . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
+ $o .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
$o .= replace_macros($tpl, array(
'$search' => $search,
'$desc' => t('Find'),
diff --git a/mod/photos.php b/mod/photos.php
index 3bc105ba1..5618ae4e6 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -730,7 +730,7 @@ function photos_content(&$a) {
$rel=("photo");
// }
- $o .= "<script> var page_query = '" . $a->query_string . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
+ $o .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
$tmp = replace_macros($tpl,array(
'$id' => $rr['id'],
@@ -1223,7 +1223,7 @@ function photos_content(&$a) {
killme();
}
else {
- $o .= "<script> var page_query = '" . $a->query_string . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
+ $o .= "<script> var page_query = '" . $_GET['q'] . "'; var extra_args = '" . extra_query_args() . "' ; </script>";
$tpl = get_markup_template('photos_recent.tpl');
$o .= replace_macros($tpl, array(
'$title' => t('Recent Photos'),