diff --git a/admin/update.php b/admin/update.php index 899c3a1..7a14395 100644 --- a/admin/update.php +++ b/admin/update.php @@ -157,7 +157,7 @@ function xoops_module_update($dirname) { // Save current version for use in the update function $prevVersion = round($moduleInDB->getVar('version') / 100, 2); - $content = round($module->getInfo('version'), 2) != $prevVersion ? $content . " " : $content . ' '; + $content = round((float)$module->getInfo('version'), 2) != $prevVersion ? $content . " " : $content . ' '; $content .= ' ' . $module->getInfo('name') . ' ' . number_format(round((float)$module->getInfo('version'), 2), 2) . ' ' . $module->getInfo('module_status') . ' (folder: /' . $module->getInfo('dirname') . ')'; $content .= '
' . $module->getInfo('description'); $content .= "
\n"; diff --git a/docs/changelog.txt b/docs/changelog.txt index b5571f5..0e97668 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -1,8 +1,13 @@ -
1.04 Final [2021-12-01]
Dev: Xoops 2.5.11, PHP 7.4.22, PHP 8.0.8 +
1.05 Final [2021-08-08]
Dev: Xoops 2.5.11, PHP 7.4.22, PHP 8.0.8 +
+- add (float) cast to $module->getInfo('version') in updates +- 1.05 Final Release + +
1.04 Final [2021-08-08]
Dev: Xoops 2.5.11, PHP 7.4.22, PHP 8.0.8
- 1.04 Final Release -
1.04 RC-2 [NOT RELEASED]
Dev: Xoops 2.5.11, PHP 7.4.13, PHP 8.0 +
1.04 RC-2 [2020-12-01]
Dev: Xoops 2.5.11, PHP 7.4.13, PHP 8.0
- fixed InstallWizard name (SebT34/mamba) - simplify loading of language files (mamba) diff --git a/xoops_version.php b/xoops_version.php index 9dc65b8..f2e6309 100644 --- a/xoops_version.php +++ b/xoops_version.php @@ -23,7 +23,7 @@ $moduleDirName = basename(__DIR__); -$modversion['version'] = '1.04'; +$modversion['version'] = '1.05'; $modversion['module_status'] = 'Final'; $modversion['release_date'] = '2021/08/08'; $modversion['name'] = _MI_INSTALLER_NAME;