public function __construct($string_id, $code = 0, $previous = NULL, $locale = NULL) { $message = \SYSTEM\PAGE\text::get($string_id, $locale); if (!$message) { throw new \SYSTEM\LOG\ERROR("Could not retrive Errortranslation: " . $string_id); } parent::__construct($message, $code, $previous); }
public static function sai_mod__SYSTEM_SAI_saimod_sys_text_action_editor($id, $lang) { $vars = \SYSTEM\PAGE\text::tag(\SYSTEM\SQL\system_text::TAG_SAI_TEXT); $vars['id'] = $id; $vars['lang'] = $lang; $vars['content'] = \SYSTEM\PAGE\text::get($id, $lang, false); $vars['tags'] = ''; $tags = \SYSTEM\PAGE\text::id_tags($id); foreach ($tags as $tag) { $vars['tags'] .= $tag['tag'] . ', '; } return \SYSTEM\PAGE\replace::replaceFile((new \SYSTEM\PSAI('modules/saimod_sys_text/tpl/saimod_sys_text_edit_editor.tpl'))->SERVERPATH(), $vars); }