Exemple #1
0
 public function bootstrap()
 {
     if (defined('WIDGET_FRAMEWORK_LOADED')) {
         return false;
     }
     $globalWidgets = $this->_getModelWidget()->getGlobalWidgets(true, false);
     $this->addWidgets($globalWidgets);
     // sondh@2013-04-02
     // detect if we are in debug mode
     // previously, put WF in debug mode when XF is in debug mode
     // it's no longer the case now, we will look for wfDebug flag in config.php
     $wfDebug = XenForo_Application::getConfig()->get('wfDebug');
     self::$_debug = !empty($wfDebug);
     define('WIDGET_FRAMEWORK_LOADED', 1);
 }