fix typo in search error handling
Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
This commit is contained in:
@@ -22,7 +22,7 @@ class TPB extends searchBase implements searchInterface
|
|||||||
$this->crawler->add($this->getContent());
|
$this->crawler->add($this->getContent());
|
||||||
$this->getItems()->addActionLinks();
|
$this->getItems()->addActionLinks();
|
||||||
if ($this->hasErrors()) {
|
if ($this->hasErrors()) {
|
||||||
return tableData::create()->setEror($this->getErrors());
|
return tableData::create()->setError($this->getErrors());
|
||||||
}
|
}
|
||||||
return tableData::create($this->getTableTitles(), $this->getRows());
|
return tableData::create($this->getTableTitles(), $this->getRows());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class bitSearch extends searchBase implements searchInterface
|
|||||||
$this->searchUrl = $this->baseUrl;
|
$this->searchUrl = $this->baseUrl;
|
||||||
$content = $this->getContent();
|
$content = $this->getContent();
|
||||||
if ($this->hasErrors()) {
|
if ($this->hasErrors()) {
|
||||||
return tableData::create()->setEror($this->getErrors());
|
return tableData::create()->setError($this->getErrors());
|
||||||
}
|
}
|
||||||
$this->crawler->add($content);
|
$this->crawler->add($content);
|
||||||
$this->getItems()->addActionLinks();
|
$this->getItems()->addActionLinks();
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class sliderkz extends searchBase implements searchInterface
|
|||||||
$this->searchUrl = $this->baseUrl;
|
$this->searchUrl = $this->baseUrl;
|
||||||
$this->getItems()->setTableTitles(["Title", "Duration", "Actions"])->addActionLinks();
|
$this->getItems()->setTableTitles(["Title", "Duration", "Actions"])->addActionLinks();
|
||||||
if ($this->hasErrors()) {
|
if ($this->hasErrors()) {
|
||||||
return tableData::create()->setEror($this->getErrors());
|
return tableData::create()->setError($this->getErrors());
|
||||||
}
|
}
|
||||||
return tableData::create($this->getTableTitles(), $this->getRows());
|
return tableData::create($this->getTableTitles(), $this->getRows());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user