diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-07 16:24:41 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-07 16:24:41 +0200 |
commit | a2b6f4e1665495f1dbabfa284f097a8cda122dcb (patch) | |
tree | 74c4a2e6283efd5fa05ed9eeb5e073b8b05618bd | |
parent | 3b7ab23e2945998be941298594b42bcb36bdff2b (diff) | |
parent | e523711ec2a8690de44748fc7382b7701f2fa6b1 (diff) | |
download | forums-a2b6f4e1665495f1dbabfa284f097a8cda122dcb.tar forums-a2b6f4e1665495f1dbabfa284f097a8cda122dcb.tar.gz forums-a2b6f4e1665495f1dbabfa284f097a8cda122dcb.tar.bz2 forums-a2b6f4e1665495f1dbabfa284f097a8cda122dcb.tar.xz forums-a2b6f4e1665495f1dbabfa284f097a8cda122dcb.zip |
Merge pull request #2812 from bantu/ticket/12826
[ticket/12826] Add root namespace indicator to exception catching.
* bantu/ticket/12826:
[ticket/12826] Add optional root namespace indicator for consistency.
[ticket/12826] Add mandatory root namespace indicator to exception catching.
-rw-r--r-- | phpBB/includes/acp/acp_board.php | 2 | ||||
-rw-r--r-- | phpBB/includes/functions.php | 2 | ||||
-rw-r--r-- | phpBB/phpbb/cache/driver/file.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index 1811748c2f..f2707f15ca 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -925,7 +925,7 @@ class acp_board { $user->timezone = new DateTimeZone($config['board_timezone']); } - catch (Exception $e) + catch (\Exception $e) { // If the board timezone is invalid, we just use the users timezone. } diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index d7b1b56532..4318b20b97 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1031,7 +1031,7 @@ function phpbb_get_timezone_identifiers($selected_timezone) $validate_timezone = new DateTimeZone($selected_timezone); $timezones[] = $selected_timezone; } - catch (Exception $e) + catch (\Exception $e) { } } diff --git a/phpBB/phpbb/cache/driver/file.php b/phpBB/phpbb/cache/driver/file.php index b32af32d25..2d538b739c 100644 --- a/phpBB/phpbb/cache/driver/file.php +++ b/phpBB/phpbb/cache/driver/file.php @@ -208,7 +208,7 @@ class file extends \phpbb\cache\driver\base { $iterator = new \DirectoryIterator($this->cache_dir); } - catch (Exception $e) + catch (\Exception $e) { return; } @@ -259,7 +259,7 @@ class file extends \phpbb\cache\driver\base { $iterator = new \DirectoryIterator($dir); } - catch (Exception $e) + catch (\Exception $e) { return; } |