Jason,
I have been trying to find a way to better implement this version checking and have temporarily applied your fix for it.
I am currently getting the info from the api call $modx->getVersionData()
and it gives me back the following values:
Array
(
[code_name] => rev 1754
[version] => 0.9.5 beta 5
[small_version] => 0
[patch_level] => 0
[full_appname] => MODx 0.9.5 beta 5 (rev 1754)
)
<br /><br />With this info it is quite hard to get an accurate version number for checking, and was wondering if we could add the following to it:<br /><br />
Array
(
[code_name] => rev 1754
[version] => 0.9.5 beta 5
[major_version] => 0
[minor_version] => 9
[small_version] => 5
[patch_level] => 0
[full_appname] => MODx 0.9.5 beta 5 (rev 1754)
)
Or something along those lines so that the version does not need to be parsed out for a feature check like I am doing in Wayfinder.
just some thoughts on what might make this easier,
Kyle