From: Evan Prodromou Date: Wed, 20 Jan 2010 21:13:52 +0000 (-0500) Subject: use standard plugin configuration for PubSubHubBub X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=365b0b1e14a34ed433ac169d5cfb6066f11919ba;p=quix0rs-gnu-social.git use standard plugin configuration for PubSubHubBub --- diff --git a/plugins/PubSubHubBub/PubSubHubBubPlugin.php b/plugins/PubSubHubBub/PubSubHubBubPlugin.php index d3ff3882fc..f134086290 100644 --- a/plugins/PubSubHubBub/PubSubHubBubPlugin.php +++ b/plugins/PubSubHubBub/PubSubHubBubPlugin.php @@ -37,20 +37,13 @@ require_once(INSTALLDIR.'/plugins/PubSubHubBub/publisher.php'); class PubSubHubBubPlugin extends Plugin { - private $hub; + public $hub = DEFAULT_HUB; function __construct() { parent::__construct(); } - function onInitializePlugin(){ - $this->hub = common_config('PubSubHubBub', 'hub'); - if(empty($this->hub)){ - $this->hub = DEFAULT_HUB; - } - } - function onStartApiAtom($action){ $action->element('link',array('rel'=>'hub','href'=>$this->hub),null); }