Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-07-31 01:13:56 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-31 01:13:56 +0400
commit765be0dc8f92a6d4bb3e678a0c23f2d4b95e0e18 (patch)
tree3a0ae0e7334250446b687667e4d365af6975e0f4 /core/ExceptionHandler.php
parent5104d94f3b2250f766b9c520e2da8da9b4cab2e9 (diff)
Refs #3741 Resuming PHP Namespaces conversion of Piwik core, mostly finished core/ conversion
Diffstat (limited to 'core/ExceptionHandler.php')
-rw-r--r--core/ExceptionHandler.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php
index 5b21d59e6e..2d97cb06d6 100644
--- a/core/ExceptionHandler.php
+++ b/core/ExceptionHandler.php
@@ -9,6 +9,7 @@
* @package Piwik
*/
use Piwik\Piwik;
+use Piwik\Log;
use Piwik\FrontController;
/**
@@ -20,7 +21,7 @@ use Piwik\FrontController;
function Piwik_ExceptionHandler(Exception $exception)
{
try {
- Zend_Registry::get('logger_exception')->logEvent($exception);
+ \Zend_Registry::get('logger_exception')->logEvent($exception);
} catch (Exception $e) {
if (FrontController::shouldRethrowException()) {
@@ -36,7 +37,7 @@ function Piwik_ExceptionHandler(Exception $exception)
$event['errline'] = $exception->getLine();
$event['backtrace'] = $exception->getTraceAsString();
- $formatter = new Piwik_Log_Exception_Formatter_ScreenFormatter();
+ $formatter = new ExceptionScreenFormatter();
$message = $formatter->format($event);
$message .= "<br /><br />And this exception raised another exception \"" . $e->getMessage() . "\"";