Skip to content

Commit

Permalink
revert change to /system/Autoloader/Autoloader.php as code removed in…
Browse files Browse the repository at this point in the history
… 4.1
  • Loading branch information
samsonasik committed Sep 25, 2020
1 parent 5aa1288 commit 3b08e8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
$parameters->set(Option::EXCLUDE_PATHS, [
__DIR__ . '/app/Views',
__DIR__ . '/system/ThirdParty',
__DIR__ . '/system/Autoloader/Autoloader.php',
__DIR__ . '/system/Debug/Toolbar/Views/toolbar.tpl.php',
]);

Expand Down
8 changes: 4 additions & 4 deletions system/Autoloader/Autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,16 @@ public function loadClass(string $class)
$class = trim($class, '\\');
$class = str_ireplace('.php', '', $class);

$mappedFile = $this->loadInNamespace($class);
$mapped_file = $this->loadInNamespace($class);

// Nothing? One last chance by looking
// in common CodeIgniter folders.
if (! $mappedFile)
if (! $mapped_file)
{
$mappedFile = $this->loadLegacy($class);
$mapped_file = $this->loadLegacy($class);
}

return $mappedFile;
return $mapped_file;
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit 3b08e8c

Please sign in to comment.