Skip to content

Commit

Permalink
[FDroidBridge] fixed bridge (RSS-Bridge#1075)
Browse files Browse the repository at this point in the history
because an additional widget (i guess the language selector) was added to the homepage.
  • Loading branch information
DJCrashdummy authored and teromene committed Apr 4, 2019
1 parent af52440 commit 66ea189
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridges/FDroidBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public function collectData(){
or returnServerError('Could not request F-Droid.');

// targetting the corresponding widget based on user selection
// "updated" is the 4th widget on the page, "added" is the 5th
// "updated" is the 5th widget on the page, "added" is the 6th

switch($this->getInput('u')) {
case 'updated':
$html_widget = $html->find('div.sidebar-widget', 4);
$html_widget = $html->find('div.sidebar-widget', 5);
break;
default:
$html_widget = $html->find('div.sidebar-widget', 5);
$html_widget = $html->find('div.sidebar-widget', 6);
break;
}

Expand Down

0 comments on commit 66ea189

Please sign in to comment.