From 4f23fa5b53420a413fefdfafe02b01cc796b81f7 Mon Sep 17 00:00:00 2001 From: Fuze Date: Wed, 27 Sep 2017 22:03:27 +0300 Subject: [PATCH] fix --- install/functions.php | 2 +- install/steps/config.php | 2 +- system/core/config.php | 2 +- system/core/controller.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install/functions.php b/install/functions.php index 08c1d56f0..7c31d0080 100755 --- a/install/functions.php +++ b/install/functions.php @@ -164,7 +164,7 @@ function copy_folder($dir_source, $dir_target) { $d->close(); } else { - copy($dir_source, $dir_target); + @copy($dir_source, $dir_target); } } \ No newline at end of file diff --git a/install/steps/config.php b/install/steps/config.php index b472911d3..5b362d776 100755 --- a/install/steps/config.php +++ b/install/steps/config.php @@ -110,7 +110,7 @@ function write_config($file, $config){ $value = var_export($value, true); - $tabs = 7 - ceil((mb_strlen($key)+3)/4); + $tabs = 10 - ceil((mb_strlen($key)+3)/4); $dump .= "\t'{$key}'"; $dump .= str_repeat("\t", $tabs); diff --git a/system/core/config.php b/system/core/config.php index 2fc52c3db..53c202572 100755 --- a/system/core/config.php +++ b/system/core/config.php @@ -174,7 +174,7 @@ public function save($values, $cfg_file='config.php'){ $value = var_export($value, true); - $tabs = 7 - ceil((mb_strlen($key)+3)/4); + $tabs = 10 - ceil((mb_strlen($key)+3)/4); $dump .= "\t'{$key}'"; $dump .= str_repeat("\t", $tabs); diff --git a/system/core/controller.php b/system/core/controller.php index 166307a28..ac27e04d7 100755 --- a/system/core/controller.php +++ b/system/core/controller.php @@ -18,7 +18,7 @@ class cmsController { * Если для контроллера задан ремап * и это свойство установлено в true * редиректа со старого адреса не будет - * + * * @var boolean */ public $disallow_mapping_redirect = false; @@ -205,7 +205,7 @@ public static function getControllersMapping() { self::loadControllers(); foreach (self::$controllers as $controller) { - if($controller['slug']){ + if(!empty($controller['slug'])){ self::$mapping[$controller['name']] = $controller['slug']; } }