@@ -62,8 +62,7 @@ discard block |
||
| 62 | 62 | if (in_array($explode[$i], $this->getAllModules())) { |
| 63 | 63 | $this->module = $explode[$i]; |
| 64 | 64 | $debut_url = $explode[$i]; |
| 65 | - } |
|
| 66 | - else if ($i >= 1) { |
|
| 65 | + } else if ($i >= 1) { |
|
| 67 | 66 | $centre_url[] = $explode[$i]; |
| 68 | 67 | $this->page[] = $explode[$i]; |
| 69 | 68 | } |
@@ -77,8 +76,7 @@ discard block |
||
| 77 | 76 | |
| 78 | 77 | if (!isset($centre_url) || ($centre_url == "")) { |
| 79 | 78 | $this->page = "index"; |
| 80 | - } |
|
| 81 | - else { |
|
| 79 | + } else { |
|
| 82 | 80 | $file = ROOT."modules/".$debut_url."/app/views/".$this->page; |
| 83 | 81 | |
| 84 | 82 | if (!file_exists($file)) { |