From b6e2c0e2c3c642274c5bc8c9cb7f7164031cd2e0 Mon Sep 17 00:00:00 2001 From: cyrrill Date: Fri, 5 Dec 2014 16:02:52 +0100 Subject: [PATCH] Modifies view load path --- classes/Core/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Core/View.php b/classes/Core/View.php index c8ecbab..e843e3b 100644 --- a/classes/Core/View.php +++ b/classes/Core/View.php @@ -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; }