Rev 1203 | Rev 1227 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1203 | Rev 1205 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | $plugin->gui($id, $out, $handled); |
42 | $plugin->gui($id, $out, $handled); |
43 | } catch (\Exception $e) { |
43 | } catch (\Exception $e) { |
44 | $out['title'] = _L('Error'); |
44 | $out['title'] = _L('Error'); |
45 | $out['icon'] = 'img/error.png'; |
45 | $out['icon'] = 'img/error.png'; |
46 | $htmlmsg = $e instanceof OIDplusException ? $e->getHtmlMessage() : htmlentities($e->getMessage()); |
46 | $htmlmsg = $e instanceof OIDplusException ? $e->getHtmlMessage() : htmlentities($e->getMessage()); |
- | 47 | if (strtolower(substr($htmlmsg, 0, 3)) === '<p ') { |
|
- | 48 | $out['text'] = $htmlmsg; |
|
- | 49 | } else { |
|
47 | $out['text'] = '<p>'.$htmlmsg.'</p>'; |
50 | $out['text'] = '<p>'.$htmlmsg.'</p>'; |
- | 51 | } |
|
48 | if (OIDplus::baseConfig()->getValue('DEBUG')) { |
52 | if (OIDplus::baseConfig()->getValue('DEBUG')) { |
49 | $out['text'] .= self::getExceptionTechInfo($e); |
53 | $out['text'] .= self::getExceptionTechInfo($e); |
50 | } |
54 | } |
51 | } |
55 | } |
52 | if ($handled) break; |
56 | if ($handled) break; |