allow /name.ext to load mod/name_ext.php
This commit is contained in:
parent
b505e76393
commit
3208a649a2
2
boot.php
2
boot.php
@ -277,7 +277,7 @@ class App {
|
|||||||
$this->argv = explode('/',$this->cmd);
|
$this->argv = explode('/',$this->cmd);
|
||||||
$this->argc = count($this->argv);
|
$this->argc = count($this->argv);
|
||||||
if((array_key_exists('0',$this->argv)) && strlen($this->argv[0])) {
|
if((array_key_exists('0',$this->argv)) && strlen($this->argv[0])) {
|
||||||
$this->module = $this->argv[0];
|
$this->module = str_replace(".", "_", $this->argv[0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->module = 'home';
|
$this->module = 'home';
|
||||||
|
Reference in New Issue
Block a user