* fixed oops

This commit is contained in:
Momchil Bozhinov
2021-02-23 22:44:44 +02:00
parent a434336802
commit 9ad42d0b84
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ class ClonOS {
$this->server_name=$_SERVER['SERVER_ADDR'];
}
if (is_null($uri_chunks) {
if (is_null($uri_chunks) { # TODO Do we need this ?
$this->uri_chunks=Utils::gen_uri_chunks($uri);
} else {
$this->uri_chunks=$uri_chunks;

View File

@@ -10,7 +10,7 @@ $uri=trim($_SERVER['REQUEST_URI'],'/');
require_once($_real_path.'/php/clonos.php');
require_once($_real_path.'/php/menu.php');
$chunks=Utils::gen_uri_chunks($uri);
$clonos=new ClonOS($_real_path,$uri);
$clonos=new ClonOS($_real_path, $chunks);
$locale = new Locale($_real_path.'/public/'); # /usr/home/web/cp/clonos/public/
$menu=new Menu($locale, $chunks);