Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzegit committed Sep 27, 2017
1 parent f4f07d3 commit 4f23fa5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion install/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function copy_folder($dir_source, $dir_target) {
$d->close();

} else {
copy($dir_source, $dir_target);
@copy($dir_source, $dir_target);
}

}
2 changes: 1 addition & 1 deletion install/steps/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion system/core/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions system/core/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class cmsController {
* Если для контроллера задан ремап
* и это свойство установлено в true
* редиректа со старого адреса не будет
*
*
* @var boolean
*/
public $disallow_mapping_redirect = false;
Expand Down Expand Up @@ -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'];
}
}
Expand Down

0 comments on commit 4f23fa5

Please sign in to comment.