Rev 348 | Rev 362 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 348 | Rev 360 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | 29 | ||
30 | foreach (OIDplus::getPagePlugins() as $plugin) { |
30 | foreach (OIDplus::getPagePlugins() as $plugin) { |
31 | try { |
31 | try { |
32 | $plugin->gui($id, $out, $handled); |
32 | $plugin->gui($id, $out, $handled); |
33 | } catch (Exception $e) { |
33 | } catch (Exception $e) { |
34 | $out['title'] = 'Error'; |
34 | $out['title'] = _L('Error'); |
35 | $out['icon'] = 'img/error_big.png'; |
35 | $out['icon'] = 'img/error_big.png'; |
36 | $out['text'] = $e->getMessage(); |
36 | $out['text'] = $e->getMessage(); |
37 | } |
37 | } |
38 | if ($handled) break; |
38 | if ($handled) break; |
39 | } |
39 | } |
40 | 40 | ||
41 | if (!$handled) { |
41 | if (!$handled) { |
42 | $out['title'] = 'Error'; |
42 | $out['title'] = _L('Error'); |
43 | $out['icon'] = 'img/error_big.png'; |
43 | $out['icon'] = 'img/error_big.png'; |
44 | $out['text'] = 'The resource cannot be found.'; |
44 | $out['text'] = _L('The resource cannot be found.'); |
45 | } |
45 | } |
46 | 46 | ||
47 | return $out; |
47 | return $out; |
48 | } |
48 | } |
49 | 49 |