Exemplo n.º 1
0
 protected function _runOnce()
 {
     $this->_checkJustInstalled();
     $this->_rebuildLoadClassHintsCache();
     $this->_checkCopyrightModification();
     $cpdListeners = XenForo_CodeEvent::getEventListeners('controller_pre_dispatch');
     if ($cpdListeners) {
         $this->_getLibraryListenerFileVersion('ControllerPreDispatch');
     }
     self::$_runOnce = true;
 }
Exemplo n.º 2
0
 protected function _runOnce()
 {
     $this->_checkJustInstalled();
     $this->_rebuildLoadClassHintsCache();
     $this->_checkCopyrightModification();
     $cpdListeners = XenForo_CodeEvent::getEventListeners('controller_pre_dispatch');
     if ($cpdListeners) {
         $this->_getLibraryListenerFileVersion('ControllerPreDispatch');
     }
     $options = XenForo_Application::get('options');
     $newOptions = XenForo_Application::get('config')->options;
     if ($newOptions) {
         foreach ($newOptions as $optionName => $optionValue) {
             $options->set($optionName, $optionValue);
         }
         XenForo_Application::set('options', $options);
     }
     self::$_runOnce = true;
 }