? Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
29 Sep 2017

Pull Request for Issue # .

Summary of Changes

This small PR replace the removed RELEASE constant with correct code, fix issue #18154 while installing Joomla 4.0

Testing Instructions

Try to install latest Joomla 4.0-dev. Before patch, there is error and install fails. After patch, install success

avatar joomla-cms-bot joomla-cms-bot - change - 29 Sep 2017
Category Libraries
avatar joomdonation joomdonation - open - 29 Sep 2017
avatar joomdonation joomdonation - change - 29 Sep 2017
Status New Pending
avatar zero-24
zero-24 - comment - 29 Sep 2017

should't this better be patched in 3.x and than merged into 4.0?

avatar joomdonation joomdonation - change - 29 Sep 2017
Labels Added: ?
avatar joomdonation
joomdonation - comment - 29 Sep 2017

Method getUserAgent uses another removed constant DEV_LEVEL which I don't what should be used to replace (or if it is needed), so I remove it for now

avatar mbabker
mbabker - comment - 29 Sep 2017

The old RELEASE constant is a combination of the newMAJOR_VERSION and MINOR_VERSION constants.

The old DEV_LEVEL constant is a combination of the new PATCH_VERSION and EXTRA_VERSION constants.

For both 3.x and 4.0 https://github.com/joomla/joomla-cms/blob/3.8.0/libraries/src/Version.php#L279 and https://github.com/joomla/joomla-cms/blob/3.8.0/libraries/src/Version.php#L283 should replace the calls for the version number constants to a call to $this->getShortVersion() which is essentially the same result.

avatar joomdonation joomdonation - change - 29 Sep 2017
Title
Replace removed constant RELEASE with correct code, fix #18154
[4.0]Replace removed constant RELEASE with correct code, fix #18154
avatar joomdonation joomdonation - edited - 29 Sep 2017
avatar wilsonge wilsonge - change - 29 Sep 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-09-29 21:24:52
Closed_By wilsonge
avatar wilsonge wilsonge - close - 29 Sep 2017
avatar wilsonge wilsonge - merge - 29 Sep 2017
avatar zero-24
zero-24 - comment - 30 Sep 2017

should't this better be patched in 3.x and than merged into 4.0?

@wilsonge this way your pain in merging 3 to 4 is even bigger ..

avatar wilsonge
wilsonge - comment - 1 Oct 2017

I mean the stuff in version.php can be updated. But the updater code i'd be nervous about updating. I think it's ok. But not sure what the deal would be about direct updates

Add a Comment

Login with GitHub to post a comment