config devient index

This commit is contained in:
fredtempez 2019-09-29 19:46:05 +02:00
parent faf0c674c9
commit 7bae64a422
1 changed files with 4 additions and 24 deletions

View File

@ -16,37 +16,17 @@ class i18n extends common {
public static $actions = [
'index' => self::GROUP_MODERATOR,
'config' => self::GROUP_MODERATOR,
//'config' => self::GROUP_MODERATOR,
'lang' => self::GROUP_VISITOR
];
/**
* Index : paramétrage des méta de la langue
*/
public function index() {
if($this->isPost()) {
$this->setData([
'page',
[
'homePageId' => $this->getInput('pagei18nHomePageId', helper::FILTER_ID, true),
'metaDescription' => $this->getInput('pagei18nMetaDescription', helper::FILTER_STRING_LONG, true),
'title' => $this->getInput('pagei18nTitle', helper::FILTER_STRING_SHORT, true)
]
]);
} else {
// Valeurs en sortie sans post
$this->addOutput([
'title' => 'Internationalisation',
'view' => 'index'
]);
}
}
/**
* Config : gestion des langues
*/
public function config() {
public function index() {
if($this->isPost()) {
// Et faire un backup
@ -113,7 +93,7 @@ class i18n extends common {
// Valeurs en sortie sans post
$this->addOutput([
'title' => 'Internationalisation',
'view' => 'config'
'view' => 'index'
]);
}