* Code cleanup

This commit is contained in:
Momchil Bozhinov
2021-02-23 21:24:58 +02:00
parent d27c1ec723
commit 20d5f45d93
3 changed files with 6 additions and 12 deletions

View File

@@ -94,8 +94,9 @@ class ClonOS {
//echo $this->realpath_page;
}else if($_SERVER['REQUEST_URI']){
//$this->realpath_page=$this->realpath_public.'pages/'.trim($_SERVER['REQUEST_URI'],'/').'/';
if(isset($this->uri_chunks[0]))
if(isset($this->uri_chunks[0])){
$this->realpath_page=$this->realpath_public.'pages/'.$this->uri_chunks[0].'/';
}
}
if(isset($this->_vars['hash'])) $this->url_hash=preg_replace('/^#/','',$this->_vars['hash']);