diff --git a/module/blog/blog.php b/module/blog/blog.php index 7830d31f..a4d68c3d 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -111,9 +111,9 @@ class blog extends common { */ private function update() { // Version 5.0 - if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '5.0', '<') ) { + if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '5.0', '<') ) { $this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]); - $this->setData(['module', $this->getUrl(0), 'config', 'version','5.0']); + $this->setData(['module', $this->getUrl(0), 'config', 'versionData','5.0']); } } @@ -404,7 +404,7 @@ class blog extends common { 'feeds' => $this->getInput('blogConfigShowFeeds',helper::FILTER_BOOLEAN), 'feedsLabel' => $this->getInput('blogConfigFeedslabel',helper::FILTER_STRING_SHORT), 'itemsperPage' => $this->getInput('blogConfigItemsperPage', helper::FILTER_INT,true), - 'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version']) + 'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData']) ]]); // Valeurs en sortie $this->addOutput([ diff --git a/module/download/download.php b/module/download/download.php index 090df7cc..7dd08a7c 100644 --- a/module/download/download.php +++ b/module/download/download.php @@ -124,9 +124,9 @@ class download extends common { */ private function update() { // Version 5.0 - if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '1.1', '<') ) { + if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '1.1', '<') ) { $this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 6]); - $this->setData(['module', $this->getUrl(0), 'config', 'version','1.2']); + $this->setData(['module', $this->getUrl(0), 'config', 'versionData','1.2']); } } @@ -418,7 +418,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']) + 'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData']) ]]); // Valeurs en sortie $this->addOutput([ diff --git a/module/news/news.php b/module/news/news.php index 5e794f70..fcaf596b 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -76,10 +76,10 @@ class news extends common { */ private function update() { // Version 3.0 - if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'version']), '3.0', '<') ) { + if (version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '3.0', '<') ) { $this->setData(['module', $this->getUrl(0), 'config', 'itemsperPage', 16]); $this->setData(['module', $this->getUrl(0), 'config', 'itemsperCol', 6]); - $this->setData(['module', $this->getUrl(0), 'config', 'version','3.0']); + $this->setData(['module', $this->getUrl(0), 'config', 'versionData','3.0']); } } @@ -202,7 +202,7 @@ class news extends common { 'itemsperPage' => $this->getInput('newsConfigItemsperPage', helper::FILTER_INT,true), 'itemsperCol' => $this->getInput('newsConfigItemsperCol', helper::FILTER_INT,true), 'itemsHeight' => $this->getInput('newsConfigItemsHeight',helper::FILTER_STRING_SHORT), - 'version' => $this->getData(['module', $this->getUrl(0), 'config', 'version']), + 'versionData' => $this->getData(['module', $this->getUrl(0), 'config', 'versionData']), 'style' => $success ? self::DATA_DIR . 'modules/' . $class . '/' . $moduleId . '/style.css' : '' ]]); // Valeurs en sortie