Commit 79a15c15 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Ein weiterer Fehler

parent 5e0c6de4
...@@ -56,9 +56,9 @@ class Yandex extends Searchengine ...@@ -56,9 +56,9 @@ class Yandex extends Searchengine
{ {
if( $metager->getPage() <= 1 ) if( $metager->getPage() <= 1 )
return; return;
$next = new Yandex(simplexml_load_string($this->engine), $metager); $last = new Yandex(simplexml_load_string($this->engine), $metager);
$next->getString .= "&page=" . ($metager->getPage() -1 ); $last->getString .= "&page=" . ($metager->getPage() -1 );
$this->next = $next; $this->last = $last;
} }
public function getNext(\App\MetaGer $metager, $result) public function getNext(\App\MetaGer $metager, $result)
...@@ -67,6 +67,7 @@ class Yandex extends Searchengine ...@@ -67,6 +67,7 @@ class Yandex extends Searchengine
return; return;
$next = new Yandex(simplexml_load_string($this->engine), $metager); $next = new Yandex(simplexml_load_string($this->engine), $metager);
$next->getString .= "&page=" . ($metager->getPage() + 1); $next->getString .= "&page=" . ($metager->getPage() + 1);
print( $next->getString);
$this->next = $next; $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