]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use standard plugin configuration for PubSubHubBub
authorEvan Prodromou <evan@status.net>
Wed, 20 Jan 2010 21:13:52 +0000 (16:13 -0500)
committerEvan Prodromou <evan@status.net>
Wed, 20 Jan 2010 21:13:52 +0000 (16:13 -0500)
plugins/PubSubHubBub/PubSubHubBubPlugin.php

index d3ff3882fc5c189c3238217f9f434c6e9dbf881b..f134086290f42ad7e3d6f131eca6dd8c05bc3d5f 100644 (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);
     }