From 638d173b70715a8b94e9a4a9085da55f2ab9cc86 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 10 Apr 2017 14:34:42 +0200 Subject: [PATCH] [PinterestBridge] Fix checkbox not working Changed behaviour of the checkbox to use the custom parser when active. That way if the parameter is missing the default value applies and the feed returns from the provided RSS Reported via #498 --- bridges/PinterestBridge.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bridges/PinterestBridge.php b/bridges/PinterestBridge.php index 7597c43..13815d8 100644 --- a/bridges/PinterestBridge.php +++ b/bridges/PinterestBridge.php @@ -17,10 +17,9 @@ class PinterestBridge extends FeedExpander { 'required' => true ), 'r' => array( - 'name' => 'Use provided RSS', + 'name' => 'Use custom RSS', 'type' => 'checkbox', 'required' => false, - 'defaultValue' => 'checked', 'title' => 'Uncheck to return data via custom filters (more data)' ) ), @@ -36,10 +35,10 @@ class PinterestBridge extends FeedExpander { switch($this->queriedContext){ case 'By username and board': if($this->getInput('r')){ - $this->collectExpandableDatas($this->getURI() . '.rss'); - } else { $html = getSimpleHTMLDOMCached($this->getURI()); $this->getUserResults($html); + } else { + $this->collectExpandableDatas($this->getURI() . '.rss'); } break; case 'From search':