Subversion Repositories oidplus

Rev

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

Rev 1130 Rev 1182
Line 41... Line 41...
41
                        try {
41
                        try {
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
                                $out['text'] = $e->getMessage();
46
                                $out['text'] = '<p>'.$e->getMessage().'</p>';
-
 
47
                                if (OIDplus::baseConfig()->getValue('DEBUG')) {
-
 
48
                                        $out['text'] .= self::getExceptionTechInfo($e);
-
 
49
                                }
47
                        }
50
                        }
48
                        if ($handled) break;
51
                        if ($handled) break;
49
                }
52
                }
50
 
53
 
51
                if (!$handled) {
54
                if (!$handled) {