[FDroidBridge] fixed bridge (#1075)

because an additional widget (i guess the language selector) was added to the homepage.
This commit is contained in:
DJCrashdummy 2019-04-04 22:52:59 +02:00 committed by Teromene
parent 4ba0d8bebe
commit d9ee9e272e
1 changed files with 3 additions and 3 deletions

View File

@ -28,14 +28,14 @@ class FDroidBridge extends BridgeAbstract {
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;
}