Subversion Repositories oidplus

Rev

Rev 1199 | Rev 1206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1199 Rev 1201
Line 32... Line 32...
32
         * @throws OIDplusException
32
         * @throws OIDplusException
33
         */
33
         */
34
        public function action(string $actionID, array $params): array {
34
        public function action(string $actionID, array $params): array {
35
                if ($actionID == 'config_update') {
35
                if ($actionID == 'config_update') {
36
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
36
                        if (!OIDplus::authUtils()->isAdminLoggedIn()) {
37
                                throw new OIDplusException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')));
37
                                throw new OIDplusHtmlException(_L('You need to <a %1>log in</a> as administrator.',OIDplus::gui()->link('oidplus:login$admin')));
38
                        }
38
                        }
39
 
39
 
40
                        _CheckParamExists($params, 'name');
40
                        _CheckParamExists($params, 'name');
41
                        _CheckParamExists($params, 'value');
41
                        _CheckParamExists($params, 'value');
42
 
42