Remove backtrace function from getRoute method.

This commit is contained in:
Alexander Demidov
2012-05-25 19:26:21 +04:00
parent f207e80409
commit 444e5ba369

View File

@ -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 . '".');
}
}
}