Skip to content

Commit

Permalink
update autoloading: make string lowercase first before ucfirst
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheg committed Jul 5, 2016
1 parent a6137a6 commit 13b32e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Skeleton/Core/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function unregister() {
* @return void
*/
public function load_class($class_name) {
$file_path = str_replace(' ', '/', ucwords(str_replace('_', ' ', str_replace('\\', '/', $class_name)))) . '.php';
$file_path = str_replace(' ', '/', ucwords(str_replace('_', ' ', str_replace('\\', ' ', strtolower($class_name))))) . '.php';

foreach ($this->include_paths as $include_path) {
$path = $include_path . '/' . $file_path;
Expand Down

0 comments on commit 13b32e1

Please sign in to comment.