[FDroidBridge] fixed bridge (#1075)
because an additional widget (i guess the language selector) was added to the homepage.
This commit is contained in:
parent
4ba0d8bebe
commit
d9ee9e272e
1 changed files with 3 additions and 3 deletions
|
@ -28,14 +28,14 @@ class FDroidBridge extends BridgeAbstract {
|
||||||
or returnServerError('Could not request F-Droid.');
|
or returnServerError('Could not request F-Droid.');
|
||||||
|
|
||||||
// targetting the corresponding widget based on user selection
|
// 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')) {
|
switch($this->getInput('u')) {
|
||||||
case 'updated':
|
case 'updated':
|
||||||
$html_widget = $html->find('div.sidebar-widget', 4);
|
$html_widget = $html->find('div.sidebar-widget', 5);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$html_widget = $html->find('div.sidebar-widget', 5);
|
$html_widget = $html->find('div.sidebar-widget', 6);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue