From a5094502005a6f99b8e4533e4107490868500411 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Tue, 22 Nov 2011 16:24:23 +0100 Subject: [PATCH] Pridana podpora pro customizaci uvodni stranky --- index.php | 1 + sklad.conf.php.example | 1 + 2 files changed, 2 insertions(+) diff --git a/index.php b/index.php index ced23c4..110efbe 100755 --- a/index.php +++ b/index.php @@ -905,6 +905,7 @@ class Sklad_UI { } $PATH_INFO=@trim($_SERVER[PATH_INFO]); + if($PATH_INFO == '' || $PATH_INFO == '/') $PATH_INFO = FRONTEND_PAGE_WELCOME; $PATH_CHUNKS = preg_split('/\//', $PATH_INFO); //Sephirot: if(!isset($PATH_CHUNKS[1])) $PATH_CHUNKS[1]=''; diff --git a/sklad.conf.php.example b/sklad.conf.php.example index 0456fbe..52ae347 100755 --- a/sklad.conf.php.example +++ b/sklad.conf.php.example @@ -25,6 +25,7 @@ define('LOCALE_LANG', 'en'); define('INSTANCE_ID', ''); define('FRONTEND_LISTING_LIMIT', 23); +define('FRONTEND_PAGE_WELCOME', ''); define('BARCODE_TYPE', 'code128b'); define('BARCODE_PREFIX', 'STORE/'); -- 2.30.2