We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd180bd commit b4180d8Copy full SHA for b4180d8
public/index.php
@@ -132,7 +132,16 @@ function cleanArray($didYouMeans){
132
if('/' !== $uri){
133
foreach($moduleDirs as $moduleDir){
134
$file = $moduleDir . str_replace('/', \DIRECTORY_SEPARATOR, $uri);
135
- if(file_exists($file)){
+
136
+ if(!file_exists($file) && file_exists($file.'.php') ){
137
+ $file = $file.'.php';
138
+ }
139
140
+ if((!file_exists($file) || ( file_exists($file) && is_dir($file) )) && file_exists($file.\DIRECTORY_SEPARATOR.'index.php') ){
141
+ $file = $file.\DIRECTORY_SEPARATOR.'index.php';
142
143
144
+ if(file_exists($file) && !is_dir($file) ){
145
146
$outPut = file_get_contents($file);
147
0 commit comments