public function __construct($initWithSettingsObj)
 {
     parent::__construct($initWithSettingsObj);
     $this->add_actions();
     $this->add_filters();
     $this->xPostForumList = false;
     if ($this->get_setting('xpostautolink')) {
         require_once $this->get_plugin_path() . 'comments.php';
         $this->integComments = new WPU_XPost_Query_Store();
     }
 }
Beispiel #2
0
 /**
  * Initialise the WP-United class
  */
 public function __construct()
 {
     $currPath = dirname(__FILE__);
     require_once $currPath . '/functions-general.php';
     require_once $currPath . '/options.php';
     require_once $currPath . '/debugger.php';
     require_once $currPath . '/context-switcher.php';
     require_once $currPath . '/phpbb.php';
     require_once $currPath . '/cache.php';
     global $wpuDebug;
     $wpuDebug = new WPU_Debug();
     $wpuDebug->start_stats();
     global $phpbbForum;
     $phpbbForum = new WPU_Phpbb();
     parent::__construct();
 }