diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-12 07:44:19 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-12 07:44:19 +0000 |
commit | a0415afc1da629a8f47dcf2265ba2a36907c9567 (patch) | |
tree | 2253518282d13580ef2bbf425d65a42de1bdf090 /core | |
parent | 187f28a6b3f1deecdae913b2958c82d8e16414e1 (diff) |
Use restore_error_handler() instead of a second set_error_handler() call
Diffstat (limited to 'core')
-rw-r--r-- | core/controllers/welcome.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 9363a276..9d3ca996 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -26,7 +26,7 @@ class Welcome_Controller extends Template_Controller { $this->template->syscheck->errors = $this->_get_config_errors(); $this->template->syscheck->modules = array(); - $old_handler = set_error_handler(array("Welcome_Controller", "_error_handler")); + set_error_handler(array("Welcome_Controller", "_error_handler")); try { $this->template->syscheck->modules = $this->_read_modules(); $this->template->album_count = ORM::factory("item")->where("type", "album")->count_all(); @@ -48,7 +48,7 @@ class Welcome_Controller extends Template_Controller { $this->_load_comment_info(); $this->_load_tag_info(); - set_error_handler($old_handler); + restore_error_handler(); $this->_create_directories(); |