[VineBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
55c406e1b4
commit
83fad77a08
1 changed files with 3 additions and 2 deletions
|
@ -15,9 +15,10 @@ class VineBridge extends BridgeAbstract {
|
|||
|
||||
public function collectData(){
|
||||
$html = '';
|
||||
$uri = 'http://vine.co/u/'.$this->getInput('u').'?mode=list';
|
||||
$uri = $this->uri.'/u/'.$this->getInput('u').'?mode=list';
|
||||
|
||||
$html = $this->getSimpleHTMLDOM($uri) or $this->returnServerError('No results for this query.');
|
||||
$html = $this->getSimpleHTMLDOM($uri)
|
||||
or $this->returnServerError('No results for this query.');
|
||||
|
||||
foreach($html->find('.post') as $element) {
|
||||
$a = $element->find('a', 0);
|
||||
|
|
Loading…
Reference in a new issue