diff --git a/module/blog/blog.php b/module/blog/blog.php index 7ab6c779..86b9a7b3 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -407,7 +407,8 @@ class blog extends common { $this->setData(['module', $this->getUrl(0), 'config',[ 'feeds' => $this->getInput('blogConfigShowFeeds',helper::FILTER_BOOLEAN), 'feedsLabel' => $this->getInput('blogConfigFeedslabel',helper::FILTER_STRING_SHORT), - 'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true) + 'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true), + 'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version']) ]]); // Valeurs en sortie $this->addOutput([ diff --git a/module/download/download.php b/module/download/download.php index d0f7b133..d816fd1e 100644 --- a/module/download/download.php +++ b/module/download/download.php @@ -422,6 +422,7 @@ class download extends common { 'feeds' => $this->getInput('downloadConfigShowFeeds',helper::FILTER_BOOLEAN), 'feedsLabel' => $this->getInput('downloadConfigFeedslabel',helper::FILTER_STRING_SHORT), 'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true), + 'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version']) ]]); // Valeurs en sortie $this->addOutput([ diff --git a/module/news/news.php b/module/news/news.php index 521dffa8..4cfc501d 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -67,9 +67,9 @@ class news extends common { */ private function update() { // Insitialisation de la version - if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) { - $this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']); - } + //if ($this->getData(['module', $this->getUrl(0), 'config', 'version']) === NULL) { + // $this->setData(['module', $this->getUrl(0), 'config', 'version','0.0']); + //} // Version 3.0 if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '3.0', '<') ) { $this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]); @@ -181,7 +181,8 @@ class news extends common { 'feeds' => $this->getInput('newsConfigShowFeeds',helper::FILTER_BOOLEAN), 'feedsLabel' => $this->getInput('newsConfigFeedslabel',helper::FILTER_STRING_SHORT), 'itemsperPage' => $this->getInput('newsConfigItemsperPage', helper::FILTER_INT,true), - 'itemsperCol' => $this->getInput('newsConfigItemsperCol', helper::FILTER_INT,true) + 'itemsperCol' => $this->getInput('newsConfigItemsperCol', helper::FILTER_INT,true), + 'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version']) ]]); // Valeurs en sortie $this->addOutput([