Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Develop - ucfirst($class) #631

Closed
wants to merge 2 commits into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/core/Common.php
View
2  system/core/Common.php
@@ -136,6 +136,7 @@ function &load_class($class, $directory = 'libraries', $prefix = 'CI_')
{
static $_classes = array();
+ $class = ucfirst($class);
// Does the class exist? If so, we're done...
if (isset($_classes[$class]))
{
@@ -143,7 +144,6 @@ function &load_class($class, $directory = 'libraries', $prefix = 'CI_')
}
$name = FALSE;
-
// Look for the class first in the local application/libraries folder
// then in the native system/libraries folder
foreach (array(APPPATH, BASEPATH) as $path)
Something went wrong with that request. Please try again.