Commit fa27b95
authored
Fixing bug with legacy autoRoute
When legacy autoRoute is used in case of using controller that sits in sub directory, that directory is determined and stored in $this->directory and new AutoRouter class. But if we subsequently try to load controller without that is not in a directory, then codeigniter can't find it because the $this->directory var in AutoRoute instance is still holding reference to previous directory. This only happens when we load several controllers from console. In my case after upgrading to 4.2.11 my tests fail because of it.
I suggest to remove this return; statement to reset directory in AutoRoute instance also.1 parent 9d255cd commit fa27b95
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
578 | | - | |
579 | 577 | | |
580 | 578 | | |
581 | 579 | | |
| |||
0 commit comments