diff options
author | Evan Prodromou <evan@status.net> | 2010-01-20 16:13:52 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-20 16:13:52 -0500 |
commit | 365b0b1e14a34ed433ac169d5cfb6066f11919ba (patch) | |
tree | 88d5009d30631754ca9849fbd4c907c0ba1425fb /plugins/PubSubHubBub/PubSubHubBubPlugin.php | |
parent | 7679f058efc43137519167f0e862f89475d43d6f (diff) |
use standard plugin configuration for PubSubHubBub
Diffstat (limited to 'plugins/PubSubHubBub/PubSubHubBubPlugin.php')
-rw-r--r-- | plugins/PubSubHubBub/PubSubHubBubPlugin.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/PubSubHubBub/PubSubHubBubPlugin.php b/plugins/PubSubHubBub/PubSubHubBubPlugin.php index d3ff3882f..f13408629 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); } |