From ece8ba8ea4e8789fb6ea27effeab7355e03853a3 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 7 Oct 2013 14:51:23 +0200 Subject: [PATCH] Calling parent::handle in ApiCheckHubAction --- actions/apicheckhub.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/actions/apicheckhub.php b/actions/apicheckhub.php index e32420d3c3..2650d367ae 100644 --- a/actions/apicheckhub.php +++ b/actions/apicheckhub.php @@ -41,7 +41,7 @@ class ApiCheckHubAction extends ApiAuthAction * * @return boolean success flag */ - function prepare($args) + protected function prepare($args) { parent::prepare($args); @@ -67,23 +67,24 @@ class ApiCheckHubAction extends ApiAuthAction * * @return void */ - function handle($args) + protected function handle() { + parent::handle(); - $discover = new FeedDiscovery(); + $discover = new FeedDiscovery(); - try { - $feeduri = $discover->discoverFromURL($this->url); - if($feeduri) { - $huburi = $discover->getHubLink(); - } - } catch (FeedSubNoFeedException $e) { - $this->clientError(_('No feed found'), 403, 'json'); - return; - } catch (FeedSubBadResponseException $e) { - $this->clientError(_('No hub found'), 403, 'json'); - return; - } + try { + $feeduri = $discover->discoverFromURL($this->url); + if($feeduri) { + $huburi = $discover->getHubLink(); + } + } catch (FeedSubNoFeedException $e) { + $this->clientError(_('No feed found'), 403, 'json'); + return; + } catch (FeedSubBadResponseException $e) { + $this->clientError(_('No hub found'), 403, 'json'); + return; + } $hub_status = array(); if ($huburi) {