simplify commits detection
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
615df56b19
commit
ca44ab943a
1 changed files with 1 additions and 4 deletions
|
@ -48,10 +48,7 @@ class GitlabCommitsBridge extends BridgeAbstract{
|
|||
or $this->returnError('No results for LWNprev', 404);
|
||||
|
||||
|
||||
foreach($html->find('li') as $commit){
|
||||
if(!in_array('commit',explode(' ',$commit->getAttribute("class")))){
|
||||
continue;
|
||||
}
|
||||
foreach($html->find('li.commit') as $commit){
|
||||
|
||||
$item = new \Item();
|
||||
$item->uri=$param['uri'];
|
||||
|
|
Loading…
Reference in a new issue