Пример #1
0
 public function prepareParams()
 {
     $widgets = array();
     foreach ($this->_params['widgets'] as $widget) {
         $widgets[] = $widget;
     }
     $core = WidgetFramework_Core::getInstance();
     $core->addWidgets($widgets);
     parent::prepareParams();
 }
Пример #2
0
 public function prepareParams()
 {
     parent::prepareParams();
     $visitor = XenForo_Visitor::getInstance();
     if ($visitor['language_id'] == 0) {
         $visitor['effectiveLanguageId'] = XenForo_Application::get('options')->defaultLanguageId;
     } else {
         $visitor['effectiveLanguageId'] = $visitor['language_id'];
     }
     $this->_params['visitor'] = $visitor->toArray();
 }