? Success

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000 okonomiyaki3000 - open - 28 Apr 2014
avatar okonomiyaki3000 okonomiyaki3000 - change - 28 Apr 2014
Title
Define the Joomla version if not already defined.
[#33667] Define the Joomla version if not already defined.
avatar okonomiyaki3000 okonomiyaki3000 - change - 28 Apr 2014
Title
Define the Joomla version if not already defined.
[#33667] Define the Joomla version if not already defined.
Labels Added: ? ?
avatar okonomiyaki3000
okonomiyaki3000 - comment - 28 Apr 2014

Actually, looking at this class more closely... shouldn't all those public properties actually be class constants? Or at least, you know, not public? And do we even need a JVERSION constant at all?

avatar wilsonge
wilsonge - comment - 28 Apr 2014

I think the best compromise is to just not require the JVersion here. Just use

return version_compare($this->getShortVersion(), $minimum, 'ge');

and we've removed the dependency on cms.php completely and to be honest why should we use a globally defined thing within the class that defines it :P

avatar okonomiyaki3000
okonomiyaki3000 - comment - 28 Apr 2014

I agree with that. I think a lot more things can be improved about this class but maybe a different PR for that.

avatar wilsonge
wilsonge - comment - 28 Apr 2014

OK done that in #3522 (sorry but easier for such a small change to create a PR straight than to clone your branch and PR into yours)

avatar okonomiyaki3000
okonomiyaki3000 - comment - 28 Apr 2014

Whatever works.

avatar Bakual
Bakual - comment - 11 Jul 2014

I'm closing this one in favor of #3522 as I think it's better.
Tell me if you disagree with that, I can reopen the PR then.

avatar Bakual Bakual - change - 11 Jul 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-07-11 12:25:31
avatar Bakual Bakual - close - 11 Jul 2014
avatar Bakual Bakual - close - 11 Jul 2014
avatar okonomiyaki3000
okonomiyaki3000 - comment - 11 Jul 2014

+1

avatar okonomiyaki3000 okonomiyaki3000 - head_ref_deleted - 14 Jul 2014

Add a Comment

Login with GitHub to post a comment