Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Added subdir to site path
givanz86ed4b822edc
diff --git a/app/controller/base.php b/app/controller/base.phpindex 67e1c65..ea6aead 100755--- a/app/controller/base.php+++ b/app/controller/base.php@@ -224,7 +224,7 @@ class Base {$this->global['user_id'] = $user['user_id'] ?? false;$this->global['user_group_id'] = $user['user_group_id'] ?? 1;$this->global['site'] = &$site;- $this->global['path'] = SITE_PATH;+ $this->global['path'] = (V_SUBDIR_INSTALL ? V_SUBDIR_INSTALL : '') . (V_SUBDIR_INSTALL && SITE_PATH ? '/' : '' ) . SITE_PATH;$this->global['user'] = $user ?? [];$this->global['admin'] = $admin ?? [];$this->global['current_year'] = date('Y');@@ -305,7 +305,8 @@ class Base {$view = view :: getInstance();$view :: template(DS . 'login.html');- die(view :: getInstance()->render());+ view :: getInstance()->render();+ die();}/**