/** * Parse the action into the template */ public function parse() { parent::parse(); // assign the interface language ourself, because it won't be assigned automagically $this->tpl->assign('INTERFACE_LANGUAGE', BackendLanguage::getInterfaceLanguage()); $this->frm->parse($this->tpl); $this->frmForgotPassword->parse($this->tpl); }
/** * Format a UNIX-timestamp as a date * syntac: {$var|formatdate} * * @param int $var The UNIX-timestamp to format. * @return string */ public static function formatTime($var) { // get setting $format = BackendAuthentication::getUser()->getSetting('time_format'); // format the date return SpoonDate::getDate($format, (int) $var, BackendLanguage::getInterfaceLanguage()); }