From 9ad42d0b84df9c8e9a67c3e0db056d2d42ddb5fb Mon Sep 17 00:00:00 2001 From: Momchil Bozhinov Date: Tue, 23 Feb 2021 22:44:44 +0200 Subject: [PATCH] * fixed oops --- php/clonos.php | 2 +- public/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/php/clonos.php b/php/clonos.php index 0a8f3ae1..35b218f1 100644 --- a/php/clonos.php +++ b/php/clonos.php @@ -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; diff --git a/public/index.php b/public/index.php index 3a80dd7b..5ecce43c 100644 --- a/public/index.php +++ b/public/index.php @@ -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);