mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Bugfix: Page switching had a problem with the search. And automatic reloading hadn't worked with some search terms
This commit is contained in:
parent
bae844e367
commit
d20d2f74ae
3 changed files with 16 additions and 10 deletions
|
@ -278,6 +278,12 @@ function paginate_data(&$a, $count=null) {
|
|||
$stripped = str_replace('q=','',$stripped);
|
||||
$stripped = trim($stripped,'/');
|
||||
$pagenum = $a->pager['page'];
|
||||
|
||||
if (!strstr($stripped, "?")) {
|
||||
$pos = strpos($stripped, "&");
|
||||
$stripped = substr($stripped, 0, $pos)."?".substr($stripped, $pos + 1);
|
||||
}
|
||||
|
||||
$url = $a->get_baseurl() . '/' . $stripped;
|
||||
|
||||
|
||||
|
|
|
@ -471,7 +471,7 @@ if ($_GET["mode"] == "raw") {
|
|||
|
||||
foreach ($_GET AS $param => $value)
|
||||
if (($param != "page") AND ($param != "q"))
|
||||
$reload_uri .= "&".$param."=".$value;
|
||||
$reload_uri .= "&".$param."=".urlencode($value);
|
||||
|
||||
$a->page['htmlhead'] .= <<< EOT
|
||||
<script type="text/javascript">
|
||||
|
|
Loading…
Reference in a new issue