Skip to content

Commit

Permalink
Stable release
Browse files Browse the repository at this point in the history
Fixes for class resolution for windows
  • Loading branch information
andrevanzuydam committed Jul 31, 2019
1 parent f6d39ee commit 316ea2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tina4Php.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function __construct($config=null)

//Check if assets folder is there
if (!file_exists($this->documentRoot."/assets") && !file_exists("Tina4.php")) {
Tina4\Routing::recurseCopy($this->webRoot."/assets", $this->documentRoot."/assets");
\Tina4\Routing::recurseCopy($this->webRoot."/assets", $this->documentRoot."/assets");
}

//Add the .htaccess file for redirecting things
Expand Down Expand Up @@ -138,10 +138,10 @@ function __toString()
{
$string = "";
if (isset($_SERVER["REQUEST_URI"]) && isset($_SERVER["REQUEST_METHOD"])) {
$string .= new Routing($this->documentRoot, $_SERVER["REQUEST_URI"], $_SERVER["REQUEST_METHOD"]);
$string .= new \Tina4\Routing($this->documentRoot, $_SERVER["REQUEST_URI"], $_SERVER["REQUEST_METHOD"]);

} else {
$string .= new Routing($this->documentRoot, "/", "GET");
$string .= new \Tina4\Routing($this->documentRoot, "/", "GET");
}
return $string;
}
Expand Down

0 comments on commit 316ea2b

Please sign in to comment.