less $lang->load() part 0: JLanguage::load() accepts an array of paths#131
Closed
WebMechanic wants to merge 1 commit intojoomla:masterfrom
WebMechanic:lesslang0
Closed
less $lang->load() part 0: JLanguage::load() accepts an array of paths#131WebMechanic wants to merge 1 commit intojoomla:masterfrom WebMechanic:lesslang0
WebMechanic wants to merge 1 commit intojoomla:masterfrom
WebMechanic:lesslang0
Conversation
…s to seach.
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);
Contributor
|
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: 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! |
Contributor
|
I'm closing this one, since it looks like #132 has the same code. Thanks WebMechanic! |
wilsonge
pushed a commit
to wilsonge/joomla-cms
that referenced
this pull request
May 26, 2019
Color contrast login
richard67
pushed a commit
to richard67/joomla-cms
that referenced
this pull request
Apr 3, 2020
Use tabs in the patchtester.xml
bembelimen
added a commit
that referenced
this pull request
Nov 24, 2021
* basics * language and options * clean temp * code corrections from @Fedik * Update tinymce.php * Update tinymce.php * Build step for building the source.html (#130) * build step * Update tinymce.es6.js * Update setoptions.xml * Revert the change for scripts/styles (#131) * Revert the change for scripts/styles Whenever we append a script tag using JS the script is loading ASYNC and most probably will break the order of execution * Give the dog a bone Co-authored-by: Dimitris Grammatikogiannis <dg@dgrammatiko.dev> Co-authored-by: Benjamin Trenkle <bembelimen@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
...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.