/** * 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); } }
/** * 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); } }