Skip to content

Commit

Permalink
fix: Настройки -> информация о сайте.
Browse files Browse the repository at this point in the history
  • Loading branch information
kvalood committed Dec 10, 2016
1 parent 378ca9a commit 318b51c
Show file tree
Hide file tree
Showing 154 changed files with 21 additions and 35,664 deletions.
10 changes: 5 additions & 5 deletions admin/SettingsAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public function fetch()
{
$this->passwd_file = $this->config->root_dir.'/simpla/.passwd';
$this->htaccess_file = $this->config->root_dir.'/simpla/.htaccess';


$managers = $this->managers->get_managers();
$this->design->assign('managers', $managers);
Expand Down Expand Up @@ -43,7 +42,7 @@ public function fetch()
$this->settings->siteinfo = json_encode($siteinfo);

// Главная страница
$this->settings->home_page = $this->request->post('home_page');
$this->settings->home_page = $this->request->post('home_page');

//Отображение товаров на сайте (Список, блоки)
$this->settings->model_type = $this->request->post('model_type');
Expand All @@ -65,7 +64,7 @@ public function fetch()
$this->settings->units = $this->request->post('units');

// Товары не в наличии в конце списка
$this->settings->products_end_list = $this->request->post('products_end_list');
$this->settings->products_end_list = $this->request->post('products_end_list');

//Количество статей отображемых на сайте или в категории
$this->settings->articles_num = $this->request->post('articles_num');
Expand Down Expand Up @@ -139,6 +138,8 @@ public function fetch()
}

$messages['success'][] = ['key' => 'saved'];

header ("location: $_SERVER[REQUEST_URI] ");
}

// Выводим главную страницу
Expand All @@ -150,6 +151,5 @@ public function fetch()

return $this->design->fetch('settings.tpl');
}

}

}

This file was deleted.

Loading

0 comments on commit 318b51c

Please sign in to comment.