Created
February 13, 2012 14:52
-
-
Save kiall/1817402 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/classes/Kohana/Request.php b/classes/Kohana/Request.php | |
index 7eb5716..9b0d508 100644 | |
--- a/classes/Kohana/Request.php | |
+++ b/classes/Kohana/Request.php | |
@@ -706,7 +706,7 @@ class Kohana_Request implements HTTP_Request { | |
} | |
// Store the controller | |
- $this->_controller = $params['controller']; | |
+ $this->_controller = ucfirst(strtolower($params['controller'])); | |
if (isset($params['action'])) | |
{ | |
diff --git a/classes/Kohana/Route.php b/classes/Kohana/Route.php | |
index 939f55e..4dbdee8 100644 | |
--- a/classes/Kohana/Route.php | |
+++ b/classes/Kohana/Route.php | |
@@ -486,6 +486,9 @@ class Kohana_Route { | |
} | |
} | |
+ // Ucfirst the controller for PSR-0 | |
+ $params['controller'] = ucfirst(strtolower($params['controller'])); | |
+ | |
return $params; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment