Commit 1dc27bdd authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch...

Merge branch '182-wir-fragen-immer-nur-die-ersten-ergebnisse-einer-suchmaschine-ab' into 'development'

Ein weiterer Fehler

Closes #182

See merge request !307
parents d8a12e16 469f1dbc
......@@ -56,9 +56,9 @@ class Yandex extends Searchengine
{
if( $metager->getPage() <= 1 )
return;
$next = new Yandex(simplexml_load_string($this->engine), $metager);
$next->getString .= "&page=" . ($metager->getPage() -1 );
$this->next = $next;
$last = new Yandex(simplexml_load_string($this->engine), $metager);
$last->getString .= "&page=" . ($metager->getPage() -1 );
$this->last = $last;
}
public function getNext(\App\MetaGer $metager, $result)
......@@ -67,6 +67,7 @@ class Yandex extends Searchengine
return;
$next = new Yandex(simplexml_load_string($this->engine), $metager);
$next->getString .= "&page=" . ($metager->getPage() + 1);
print( $next->getString);
$this->next = $next;
}
}
Markdown is supported
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