From d9ee9e272ef8d97402604dc2bfdb9b5295de0def Mon Sep 17 00:00:00 2001 From: DJCrashdummy Date: Thu, 4 Apr 2019 22:52:59 +0200 Subject: [PATCH] [FDroidBridge] fixed bridge (#1075) because an additional widget (i guess the language selector) was added to the homepage. --- bridges/FDroidBridge.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/FDroidBridge.php b/bridges/FDroidBridge.php index 65a1a9f2..7f54735a 100644 --- a/bridges/FDroidBridge.php +++ b/bridges/FDroidBridge.php @@ -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; }