예제 #1
0
    /**
     * display the ML settings form
     *
     * @return string html output
     */
    public function multilingual()
    {
        // security check
        if (!SecurityUtil::checkPermission('Settings::', '::', ACCESS_ADMIN)) {
            return LogUtil::registerPermissionError();
        }

        // get the server timezone and pass it to template - we should not allow to change this
        $this->view->assign('timezone_server', DateUtil::getTimezone());
        $this->view->assign('timezone_server_abbr', DateUtil::getTimezoneAbbr());

        return $this->view->fetch('settings_admin_multilingual.tpl');
    }