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 30cc96e commit a4dde63Copy full SHA for a4dde63
src/server/core/Controller.php
@@ -20,9 +20,9 @@ public function __construct(&$request) {
20
21
public function fixViewFolder() {
22
try {
23
- $this->ViewFolder = preg_replace("/\//", "\\", $this->ViewFolder);
24
- if (substr($this->ViewFolder, -1) != "\\")
25
- $this->ViewFolder = $this->ViewFolder . "\\";
+ $this->ViewFolder = str_replace("\\", "/", $this->ViewFolder);
+ if (substr($this->ViewFolder, -1) != "/")
+ $this->ViewFolder = $this->ViewFolder . "/";
26
}
27
catch (Exception $e) {
28
throw $e;
@@ -40,4 +40,4 @@ public function view($view) {
40
41
public abstract function process();
42
43
-?>
+?>
0 commit comments