From 444e5ba36996f0c6d33591547c0840ead2f1af55 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Fri, 25 May 2012 19:26:21 +0400 Subject: [PATCH] Remove backtrace function from getRoute method. --- app/router/Router.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/router/Router.php b/app/router/Router.php index 0c2d199..5eca53d 100644 --- a/app/router/Router.php +++ b/app/router/Router.php @@ -69,8 +69,7 @@ class Router if ($this->routeIsExists($name)) { return $this->getRouteByName($name); } else { - $btrace = debug_backtrace(); - throw new ErrorException('Unknown route name: "' . $name . '". ' . 'Call from "' . $btrace[0]['file'] . '" on line ' . $btrace[0]['line'] . '.'); + throw new ErrorException('Unknown route name: "' . $name . '".'); } } }