use standard plugin configuration for PubSubHubBub

This commit is contained in:
Evan Prodromou 2010-01-20 16:13:52 -05:00
parent 7679f058ef
commit 365b0b1e14
1 changed files with 1 additions and 8 deletions

View File

@ -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);
}