Skip to content

Commit bef1c83

Browse files
[4.4] Language Filter strings (#42687)
* [4.4] * Update administrator/components/com_finder/src/Helper/LanguageHelper.php Co-authored-by: Richard Fath <[email protected]> --------- Co-authored-by: Richard Fath <[email protected]>
1 parent 6253096 commit bef1c83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

administrator/components/com_finder/src/Helper/LanguageHelper.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public static function branchSingular($branchName)
5858
{
5959
$return = preg_replace('/[^a-zA-Z0-9]+/', '_', strtoupper($branchName));
6060
$language = Factory::getApplication()->getLanguage();
61+
$debug = Factory::getApplication()->get('debug_lang');
6162

62-
if ($language->hasKey('PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return) || JDEBUG) {
63+
if ($language->hasKey('PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return) || $debug) {
6364
return 'PLG_FINDER_QUERY_FILTER_BRANCH_S_' . $return;
6465
}
6566

0 commit comments

Comments
 (0)