From 4bbc3a68323a7ca4071901cf405ff677af94ee5a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 26 Dec 2006 02:43:11 +0000 Subject: [PATCH] We have to use call_user_func() in BSRegisteR::_error() --- Router.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Router.php b/Router.php index f1429bd..7405c85 100644 --- a/Router.php +++ b/Router.php @@ -238,8 +238,7 @@ class BSRouter foreach ($controllers AS $file) { - $controller = str_replace('.php', '', $file); - $this->addController($prefix . $controller, $path . $controller); + $this->addController($prefix . str_replace('.php', '', $file), $path . $file); } } @@ -315,7 +314,7 @@ class BSRouter { if (function_exists($this->errorAction) OR (is_array($this->errorAction) AND method_exists($this->errorAction[0], $this->errorAction[1]))) { - $this->errorAction($errMsg); + call_user_func($this->errorAction, $errMsg); } else { -- 2.43.5