?

User tests: Successful: Unsuccessful:

avatar HermanPeeren
HermanPeeren
26 Dec 2014

Checking if the default_lang property is filled, was a reminiscense of those properties being static and the constructor only being called once. The comment 2 lines higher ("Ensure that constructor is called one time") belonged to this conditional. Now the properties are not static anymore and so the test is not necessary, as the constructor is only called once for every instantiation.

To TEST this PR: multilanguage should be working exactly the same when applied, for no functionality is changed. Just removed a test that would always evaluate to true.

Comment: there is some deprecated code used:

  • JApplication::getHash should now be JApplicationHelper::getHash
  • JString should now be \Joomla\String\String

Maybe we shoud clean that up too in one go.

avatar HermanPeeren HermanPeeren - open - 26 Dec 2014
avatar jissues-bot jissues-bot - change - 26 Dec 2014
Labels Added: ?
avatar smz
smz - comment - 26 Dec 2014

@test success

Good catch!

As far as regards a further clean-up I personally would say: "Why not? If you're willing, go for it!" :+1:

avatar smz smz - test_item - 26 Dec 2014 - Tested successfully
avatar wilsonge
wilsonge - comment - 27 Dec 2014

Do it in separate PR's. I did one for the JApplication::getHash last night. The strong one should be done globally as well like we did Registry.

avatar infograf768
infograf768 - comment - 27 Dec 2014

This can't be merged anymore as #5528 was committed. Please update.

avatar HermanPeeren HermanPeeren - change - 27 Dec 2014
The description was changed
Title
clean up: remove unneeded "if (!$this->default_lang)" line 66
clean up language filter: remove unneeded "if (!$this->default_lang)" line 66
avatar HermanPeeren HermanPeeren - close - 27 Dec 2014
avatar HermanPeeren HermanPeeren - change - 27 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-27 13:34:19
avatar HermanPeeren
HermanPeeren - comment - 27 Dec 2014

Updated: see #5531
As the changes were in the same code the rebase didn't work. Reapplying #5528 was an extra unnecessary commit, so I redid the PR. This PR was automatically closed and I could not reopen it. So did a new Pull Request.

Add a Comment

Login with GitHub to post a comment