Skip to content

Commit 7dcbc28

Browse files
committed
Bug fixed
1 parent 38491f5 commit 7dcbc28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/core/App.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ private function set_controller($url)
124124
{
125125
if(isset($url[0])) {
126126

127-
if (is_dir(APP_DIR . 'controllers/' . $this->makeURL($url[0]))) {
127+
if (is_dir(APP_DIR . 'controllers/' . $url[0])) {
128128
$this->controller_dir = true;
129-
if (file_exists(APP_DIR . 'controllers/' . $this->makeURL($url[0]) . '/' . $this->makeURL($url[1]) . '.php')) {
129+
if (file_exists(APP_DIR . 'controllers/' . $url[0] . '/' . $this->makeURL($url[1]) . '.php')) {
130130
$this->controller = $this->makeURL($url[1]);
131-
$this->loadFile(APP_DIR . 'controllers/' . $this->makeURL($url[0]) . '/' . $this->controller);
131+
$this->loadFile(APP_DIR . 'controllers/' . $url[0] . '/' . $this->controller);
132132
$this->controller = new $this->controller;
133133
} else {
134134
$this->loadFile(APP_DIR . 'views/errors/error_404');

0 commit comments

Comments
 (0)