Nouveaux écran de config

This commit is contained in:
Fred Tempez 2020-11-21 16:51:06 +01:00
parent 55bead4f4f
commit 7d6a46c9b5
1 changed files with 5 additions and 9 deletions

View File

@ -44,7 +44,7 @@ class common {
const ACCESS_TIMER = 1800; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '10.4.00.006'; const ZWII_VERSION = '10.4.00.007';
const ZWII_UPDATE_CHANNEL = "v10"; const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = []; public static $actions = [];
@ -1509,7 +1509,7 @@ class common {
} }
} }
// Parcourir pageList et rechercher les modules de blog // Parcourir pageList et rechercher les modules de blog
foreach ($pageList as $parentKey => $parent) { foreach ($pageList as $parentKey => $parent) {
//La page est un blog //La page est un blog
if ($this->getData(['page',$parent,'moduleId']) === 'blog' ) { if ($this->getData(['page',$parent,'moduleId']) === 'blog' ) {
@ -1540,11 +1540,7 @@ class common {
} }
} }
} }
$this->setData(['core', 'dataVersion', 10400]); // Localisation
}
// Version 10.4.99
if ($this->getData(['core', 'dataVersion']) < 10499) {
$this->setData(['locale','homePageId',$this->getData(['config','homePageId'])]); $this->setData(['locale','homePageId',$this->getData(['config','homePageId'])]);
$this->setData(['locale','page404',$this->getData(['config','page404'])]); $this->setData(['locale','page404',$this->getData(['config','page404'])]);
$this->setData(['locale','page403',$this->getData(['config','page403'])]); $this->setData(['locale','page403',$this->getData(['config','page403'])]);
@ -1553,8 +1549,8 @@ class common {
$this->setData(['locale','searchPageId',$this->getData(['config','searchPageId'])]); $this->setData(['locale','searchPageId',$this->getData(['config','searchPageId'])]);
$this->setData(['locale','metaDescription',$this->getData(['config','metaDescription'])]); $this->setData(['locale','metaDescription',$this->getData(['config','metaDescription'])]);
$this->setData(['locale','title',$this->getData(['config','title'])]); $this->setData(['locale','title',$this->getData(['config','title'])]);
$this->setData(['core', 'dataVersion', 10499]); $this->setData(['core', 'dataVersion', 10400]);
} }
} }
} }