Skip to content

Commit

Permalink
Merge pull request #13 from mambax7/master
Browse files Browse the repository at this point in the history
add (float) cast to $module->getInfo('version') in updates
  • Loading branch information
mambax7 authored Aug 8, 2021
2 parents aae4e34 + 55efee8 commit 8f2e73a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 . " <td ><span style='color: #FF0000; font-weight: bold;'>" : $content . ' <td><span>';
$content = round((float)$module->getInfo('version'), 2) != $prevVersion ? $content . " <td ><span style='color: #FF0000; font-weight: bold;'>" : $content . ' <td><span>';
$content .= ' ' . $module->getInfo('name') . '&nbsp;' . number_format(round((float)$module->getInfo('version'), 2), 2) . '&nbsp;' . $module->getInfo('module_status') . '&nbsp;(folder: /' . $module->getInfo('dirname') . ')';
$content .= ' <br>' . $module->getInfo('description');
$content .= " </span></td>\n";
Expand Down
9 changes: 7 additions & 2 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<h5>1.04 Final [2021-12-01]</h5> Dev: Xoops 2.5.11, PHP 7.4.22, PHP 8.0.8
<h5>1.05 Final [2021-08-08]</h5> Dev: Xoops 2.5.11, PHP 7.4.22, PHP 8.0.8
<hr>
- add (float) cast to $module->getInfo('version') in updates
- 1.05 Final Release

<h5>1.04 Final [2021-08-08]</h5> Dev: Xoops 2.5.11, PHP 7.4.22, PHP 8.0.8
<hr>
- 1.04 Final Release

<h5>1.04 RC-2 [NOT RELEASED]</h5> Dev: Xoops 2.5.11, PHP 7.4.13, PHP 8.0
<h5>1.04 RC-2 [2020-12-01]</h5> Dev: Xoops 2.5.11, PHP 7.4.13, PHP 8.0
<hr>
- fixed InstallWizard name (SebT34/mamba)
- simplify loading of language files (mamba)
Expand Down
2 changes: 1 addition & 1 deletion xoops_version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f2e73a

Please sign in to comment.