Some junk lines are in kernel/module.php. 'version' may
be a required item in xoops_version.php. Therefore,
line 214 'if' line can be removed. Also, line 89
'floatval' can be removed.
Tom_G3X said,
The method we get the version should be
Legacy_Utils::convertVersionFromModinfoToInt().
I changed a kernel/module.php source and commited along the
following lines.
In order to keep compatibility, 'version' should not be a
required parameter in xoops_version.php.
To keep compatibility, I add a logic that sets 0 to
'version', if $modversion['version'] is not set in
xoops_version.php.
In order to unify a way of process, to get version as
integer value should call
Legacy_Utils::convertVersionFromModinfoToInt()
This item have the relation with 9759.
http://sourceforge.jp/tracker/index.php?func=detail&aid=9759&group_id=64&atid=7892
Some junk lines are in kernel/module.php. 'version' may
be a required item in xoops_version.php. Therefore,
line 214 'if' line can be removed. Also, line 89
'floatval' can be removed.
Tom_G3X said,
The method we get the version should be
Legacy_Utils::convertVersionFromModinfoToInt().