Пример #1
0
 /**
  * Post-save handler.
  */
 protected function _postSave()
 {
     if ($this->getOption(self::OPTION_FULL_COMPILE)) {
         XenForo_Template_Compiler_Email::removeTemplateFromCache($this->get('title'));
         XenForo_Template_Compiler_Email::removeTemplateFromCache($this->getExisting('title'));
         $this->_recompileTemplate();
     }
     if ($devDir = $this->_getDevOutputDir()) {
         $this->_writeDevFileOutput($devDir);
     }
 }
Пример #2
0
 /**
  * Post-save handler.
  */
 protected function _postSave()
 {
     if (is_array($this->_modificationStatuses)) {
         $this->_getModificationModel()->updateTemplateModificationLog($this->get('template_id'), $this->_modificationStatuses);
     }
     if ($this->getOption(self::OPTION_FULL_COMPILE)) {
         XenForo_Template_Compiler_Email::removeTemplateFromCache($this->get('title'));
         XenForo_Template_Compiler_Email::removeTemplateFromCache($this->getExisting('title'));
         $this->_recompileTemplate();
     }
     if ($devDir = $this->_getDevOutputDir()) {
         $this->_writeDevFileOutput($devDir);
     }
 }