? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
29 Nov 2013

JHtmlContentLanguage::existing() uses a cached static::$items to return the list of installed languages. However this doesn't take into account the option for the $all and translate arguments of the function.
The first call determines what will be returned and subsequent calls always return the same, ignoring the passed arguments.

You can test this in com_content where the language batch function does miss the All option because the Search Tools are calling the function prior to the language batch.
This PR will solve that and restore the expected behavior.

See tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32846
Previous PR for reference: #2621

avatar Bakual Bakual - open - 29 Nov 2013
avatar brunobatista
brunobatista - comment - 29 Nov 2013

:+1:

avatar Bakual Bakual - close - 30 Nov 2013
avatar Bakual Bakual - change - 30 Nov 2013
Status New Closed
Closed_Date 0000-00-00 00:00:00 2013-11-30 04:41:20
Labels Added: ?
avatar Bakual Bakual - close - 30 Nov 2013
avatar Bakual Bakual - head_ref_deleted - 30 Nov 2013
avatar garyamort garyamort - reference | - 2 Dec 13

Add a Comment

Login with GitHub to post a comment