Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 505852a

Browse files
author
Jamie Snape
committed
Correct misspelling of error component and fatal error
1 parent 6b66205 commit 505852a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

core/Bootstrap.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ protected function _initConfig()
173173
}
174174
Zend_Registry::set('logger', $logger);
175175

176-
// Catch fatal errors
177-
require_once BASE_PATH.'/core/controllers/components/NotifyErrorComponent.php';
178-
$notifyErrorCompoenent = new NotifyErrorComponent();
176+
// Init error handler
177+
require_once BASE_PATH . '/core/controllers/components/NotifyErrorComponent.php';
178+
$notifyErrorComponent = new NotifyErrorComponent();
179179
ini_set('display_errors', 0);
180-
register_shutdown_function(array($notifyErrorCompoenent, 'fatalEror'), $logger, new Zend_Mail());
181-
set_error_handler(array($notifyErrorCompoenent, 'warningError'), E_NOTICE|E_WARNING);
180+
register_shutdown_function(array($notifyErrorComponent, 'fatalError'), $logger, new Zend_Mail());
181+
set_error_handler(array($notifyErrorComponent, 'warningError'), E_NOTICE | E_WARNING);
182182

183183
return $config;
184184
}

core/controllers/components/NotifyErrorComponent.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public function initNotifier($environment, ArrayObject $error, Zend_Mail $mailer
4343
$this->_server = $server;
4444
}
4545

46-
/** Handle fatal Errors*/
47-
public function fatalEror($logger, $mailer)
46+
/** Handle fatal errors */
47+
public function fatalError($logger, $mailer)
4848
{
4949
if(!is_null(error_get_last()))
5050
{
@@ -155,7 +155,7 @@ public function fatalEror($logger, $mailer)
155155
$logger->crit($this->getFatalErrorMessage($e));
156156
$logger->__destruct();
157157
}
158-
} // end fatalEror
158+
}
159159

160160
/** handle warning*/
161161
public function warningError($errno, $errstr, $errfile, $errline)
@@ -244,7 +244,7 @@ public function getFatalErrorMessage($e)
244244
return $message;
245245
}
246246

247-
/** Create Exception message error*/
247+
/** Create exception message error */
248248
public function getFullErrorMessage()
249249
{
250250
$message = '';

0 commit comments

Comments
 (0)