Browse Source

update download 2.6 dans le module

master
Fred Tempez 2 months ago
parent
commit
899b02cf79
  1. 22
      core/include/update.inc.php

22
core/include/update.inc.php

@ -964,25 +964,3 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
$this->setData(['core', 'dataVersion', 11400]);
}
// Version 11.4.03
if ($this->getData(['core', 'dataVersion']) < 11403) {
// Modification de structure du module download
foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) {
$pageList [] = $parentKey;
foreach ($parentValue as $childKey) {
$pageList [] = $childKey;
}
}
foreach ($pageList as $parentKey => $parent) {
if ($this->getData(['page', $parent, 'moduleId']) === 'download') {
$tempData = $this->getData(['module', $parent, 'items']);
$this->setData(['module', $parent, 'posts', $tempData]);
$this->deleteData(['module', $parent, 'items']);
}
}
// Mise à jour
$this->setData(['core', 'dataVersion', 11403]);
}
Loading…
Cancel
Save