? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
20 Aug 2016

Summary of Changes

Depending on how many times a module gets used on a page, its language files may attempt to be loaded multiple times. Because of the internal loading of the default language, depending on where a language file is located the load method will go through at least a couple of loops resulting in a bunch of extra processing. Example:

screen shot 2016-08-20 at 4 43 29 pm

By checking if the files have been loaded first, we can cut back on the number of loops that get made here. Example:

screen shot 2016-08-20 at 4 46 48 pm

Testing Instructions

The module's language files are still loaded correctly.

Documentation Changes Required

N/A

avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Category Libraries
avatar mbabker mbabker - open - 20 Aug 2016
avatar mbabker mbabker - change - 20 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Aug 2016
Labels Added: ?
avatar andrepereiradasilva andrepereiradasilva - test_item - 21 Aug 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Aug 2016

I have tested this item successfully on a5ecc9a

works as described


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11698.

avatar Fedik Fedik - test_item - 22 Aug 2016 - Tested successfully
avatar Fedik
Fedik - comment - 22 Aug 2016

I have tested this item successfully on a5ecc9a


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11698.

avatar zero-24 zero-24 - change - 22 Aug 2016
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 22 Aug 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11698.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2016
Labels Added: ?
avatar rdeutz rdeutz - change - 22 Aug 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-22 19:58:50
Closed_By rdeutz
avatar rdeutz rdeutz - close - 22 Aug 2016
avatar rdeutz rdeutz - merge - 22 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - close - 22 Aug 2016
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2016
Labels Removed: ?
avatar infograf768
infograf768 - comment - 27 Aug 2016

@mbabker
Regression: seee #11812

avatar infograf768
infograf768 - comment - 27 Aug 2016

Maybe we need to chnage to
if (!$lang->getPaths($module->module || $app->isAdmin())) ?

avatar mbabker
mbabker - comment - 27 Aug 2016

Not an acceptable fix. It basically says "always load language files for an extension on the admin app, regardless of if loaded or not". The whole point of this was to reduce the number of times we're calling JLanguage::load() when an extension has already been loaded.

Add a Comment

Login with GitHub to post a comment