Skip to content

Commit a4dde63

Browse files
authored
Update Controller.php
1 parent 30cc96e commit a4dde63

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/core/Controller.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public function __construct(&$request) {
2020

2121
public function fixViewFolder() {
2222
try {
23-
$this->ViewFolder = preg_replace("/\//", "\\", $this->ViewFolder);
24-
if (substr($this->ViewFolder, -1) != "\\")
25-
$this->ViewFolder = $this->ViewFolder . "\\";
23+
$this->ViewFolder = str_replace("\\", "/", $this->ViewFolder);
24+
if (substr($this->ViewFolder, -1) != "/")
25+
$this->ViewFolder = $this->ViewFolder . "/";
2626
}
2727
catch (Exception $e) {
2828
throw $e;
@@ -40,4 +40,4 @@ public function view($view) {
4040

4141
public abstract function process();
4242
}
43-
?>
43+
?>

0 commit comments

Comments
 (0)