Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed camel-case controller name bug

  • Loading branch information...
commit 242b1f29a52a9de1a79a6639adafcd9fd83b1c61 1 parent 8419312
@dchill42 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 system/core/CodeIgniter.php
View
4 system/core/CodeIgniter.php
@@ -385,7 +385,7 @@ function &get_instance()
// Get the parsed route and identify class, method, and arguments
$route = $CI->router->fetch_route();
$args = array_slice($route, CI_Router::SEG_CLASS);
- $class = array_shift($args);
+ $class = strtolower(array_shift($args));
$method = array_shift($args);
// Mark a start point so we can benchmark the controller
@@ -398,7 +398,7 @@ function &get_instance()
}
// Set special "routed" reference to routed Controller
- $CI->routed =& $CI->$class;
+ $CI->routed = $CI->$class;
/*
* ------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.