Skip to content

Commit

Permalink
Issue 30288 small fixes - missing change (#31257)
Browse files Browse the repository at this point in the history
### Proposed Changes
* The pull request #30289 added
several fixes to our source code. However, for some reason, this
particular change:
df53a41
did not make it.
* This PR brings that change back, as it's very important for our
Language Factory class to support an underscore or a dash in the
language ID.
  • Loading branch information
jcastro-dotcms authored Jan 28, 2025
1 parent ff7b248 commit 20d8ba3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected Language getLanguage(final String languageId) {
}

// if we have a number
if(!languageId.contains("_")){
if(!languageId.contains("_") && !languageId.contains("-")) {
try {
final long parsedLangId = Long.parseLong(languageId);
return getLanguage(parsedLangId);
Expand Down

0 comments on commit 20d8ba3

Please sign in to comment.