diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-22 04:54:51 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-22 04:54:51 +0000 |
commit | f6381c534e92e230349f5633eb280a22421d9050 (patch) | |
tree | afd06364b1524efbfb32874f8204a131580241c1 /core/helpers | |
parent | 17f77b8de4586d1ee4a3693561b71815eb2fc092 (diff) |
Reinstate the dummy error handler to ensure that we work in a clean install w/ no database
Diffstat (limited to 'core/helpers')
-rw-r--r-- | core/helpers/module.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php index 17a0606b..fc7d7042 100644 --- a/core/helpers/module.php +++ b/core/helpers/module.php @@ -152,11 +152,13 @@ class module_Core { // Do The Right Thing. // // @todo get rid of this extra error checking when we have an installer. + set_error_handler(array("module", "dummy_error_handler")); try { $modules = ORM::factory("module")->find_all(); } catch (Exception $e) { return; } + restore_error_handler(); try { foreach ($modules as $module) { @@ -173,6 +175,7 @@ class module_Core { self::event("gallery_ready"); } + public static function dummy_error_handler() { } /** * Load the active theme. This is called at bootstrap time. We will only ever have one theme |