Skip to content

Commit

Permalink
Modifies view load path
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrrill committed Dec 5, 2014
1 parent b8960d7 commit b6e2c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/Core/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct($name, $params = array(), $ns = null)
{
$this->name = $name;

$this->path = (($ns) ?: namespace\PATH)."/views/$name.php";
$this->path = (($ns === null) ? namespace\PATH : $ns)."/views/$name.php";
$this->params = $params;
}

Expand Down

0 comments on commit b6e2c0e

Please sign in to comment.