Rev 1365 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1365 | Rev 1400 | ||
---|---|---|---|
Line 89... | Line 89... | ||
89 | // Outputs: JSON |
89 | // Outputs: JSON |
90 | _CheckParamExists($_REQUEST, 'id'); |
90 | _CheckParamExists($_REQUEST, 'id'); |
91 | $_REQUEST['id'] = OIDplus::prefilterQuery($_REQUEST['id'], false); |
91 | $_REQUEST['id'] = OIDplus::prefilterQuery($_REQUEST['id'], false); |
92 | try { |
92 | try { |
93 | $json_out = OIDplus::gui()->generateContentPage($_REQUEST['id']); |
93 | $json_out = OIDplus::gui()->generateContentPage($_REQUEST['id']); |
- | 94 | $json_out['id'] = $_REQUEST['id']; |
|
94 | } catch (\Exception $e) { |
95 | } catch (\Exception $e) { |
95 | $json_out = array(); |
96 | $json_out = array(); |
96 | $json_out['title'] = _L('Error'); |
97 | $json_out['title'] = _L('Error'); |
97 | $json_out['icon'] = 'img/error.png'; |
98 | $json_out['icon'] = 'img/error.png'; |
98 | $htmlmsg = $e instanceof OIDplusException ? $e->getHtmlMessage() : htmlentities($e->getMessage()); |
99 | $htmlmsg = $e instanceof OIDplusException ? $e->getHtmlMessage() : htmlentities($e->getMessage()); |