From 94603b2cb702665c214444fbf3a8cea7b9535d73 Mon Sep 17 00:00:00 2001 From: predominant Date: Fri, 9 Apr 2010 13:19:47 +1000 Subject: [PATCH] Making dispatcher constructor public and removing return statement. --- cake/dispatcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/dispatcher.php b/cake/dispatcher.php index b0efa8b97..25794bca5 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -72,12 +72,12 @@ class Dispatcher extends Object { /** * Constructor. */ - function __construct($url = null, $base = false) { + public function __construct($url = null, $base = false) { if ($base !== false) { Configure::write('App.base', $base); } if ($url !== null) { - return $this->dispatch($url); + $this->dispatch($url); } }