User tests: Successful: Unsuccessful:
...to search for language files.
allows a single line of
$lang->load('plg_'.$folder.'_'.$element, array(JPATH_ADMINISTRATOR,JPATH_PLUGINS.'/'.$folder.'/'.$element), true, false, false);
to perform the same as a bulks of
$lang->load('plg_'.$folder.'_'.$element, JPATH_ADMINISTRATOR, null, false, false) || $lang->load('plg_'.$folder.'_'.$element, JPATH_PLUGINS.'/'.$folder.'/'.$element, null, false, false) || $lang->load('plg_'.$folder.'_'.$element, JPATH_ADMINISTRATOR, $lang->getDefault(), false, false) || $lang->load('plg_'.$folder.'_'.$element, JPATH_PLUGINS.'/'.$folder.'/'.$element, $lang->getDefault(), false, false);
I'll add subsequent pull requests where this change is used.
Next part will handle "tpl_" files.
Thanks for coding this, WebMechanic!
While we’re transitioning to a new integrated tracker, could you report the issue on our current main tracker at JoomlaCode and cross-reference each with a link to the other? Here’s the process for reporting on the other tracker:
http://docs.joomla.org/Filing_bugs_and_issues
Alternatively, let me know if you’d like me to create it for you and I can go ahead and do that.
Thanks in advance and thanks again for coding this, WebMechanic!