diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-12-08 12:51:34 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-12-08 12:51:34 +0000 |
| commit | 91495569c5a00349a68e84e2297e0c2b3ffb458e (patch) | |
| tree | bc4573d981689fd24a91b8b49b3e0bc75b3695b2 /app/I18N.php | |
| parent | 71239cb694d278d044f33328daaa60c8ed7431e9 (diff) | |
| download | webtrees-91495569c5a00349a68e84e2297e0c2b3ffb458e.tar.gz webtrees-91495569c5a00349a68e84e2297e0c2b3ffb458e.tar.bz2 webtrees-91495569c5a00349a68e84e2297e0c2b3ffb458e.zip | |
Move DebugBar code to middleware
Diffstat (limited to 'app/I18N.php')
| -rw-r--r-- | app/I18N.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/I18N.php b/app/I18N.php index 9714815d6c..954d01d7e2 100644 --- a/app/I18N.php +++ b/app/I18N.php @@ -243,9 +243,7 @@ class I18N if (file_exists(WT_ROOT . 'language/' . $code . '.mo')) { try { $locales[] = Locale::create($code); - } catch (\Exception $ex) { - DebugBar::addThrowable($ex); - + } catch (Exception $ex) { // No such locale exists? } } @@ -450,8 +448,6 @@ class I18N File::mkdir($cache_dir); file_put_contents($cache_file, '<?php return ' . var_export($translations, true) . ';'); } catch (Exception $ex) { - DebugBar::addThrowable($ex); - // During setup, we may not have been able to create it. } } else { @@ -491,9 +487,7 @@ class I18N foreach (glob(WT_ROOT . 'language/*.mo') as $file) { try { $locales[] = Locale::create(basename($file, '.mo')); - } catch (\Exception $ex) { - DebugBar::addThrowable($ex); - + } catch (Exception $ex) { // Not a recognised locale } } |
