Commit 34ab25af authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed yacy pagination

parent b9ffd9b0
......@@ -62,10 +62,9 @@ class Yacy extends Searchengine
}
if($resultCount > 0){
$next = clone $this;
$next->engine->{"get-parameter"}["startRecord"] = $this->engine->{"get-parameter"}["startRecord"] + 10;
$next->getString = $this->generateGetString($metager->getQ());
$next->updateHash();
$engine = clone $this->engine;
$engine->{"get-parameter"}->startRecord += 10;
$next = new Yacy($this->name, $engine, $metager);
$this->next = $next;
}
} catch (\Exception $e) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment