Skip to content

Commit

Permalink
Use version available
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Jul 10, 2021
1 parent 2585a9d commit 1da5baf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion component/admin/models/fields/corelanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected function getOptions()
$params = JComponentHelper::getParams('com_localise');
$reference = $params->get('reference', 'en-GB');

if (version_compare(JVERSION, '4.0', 'ge'))
if (version_compare(JVERSION, '3.7', 'ge'))
{
$admin = JLanguageHelper::getKnownLanguages(LOCALISEPATH_ADMINISTRATOR);
$site = JLanguageHelper::getKnownLanguages(LOCALISEPATH_SITE);
Expand Down
4 changes: 2 additions & 2 deletions component/admin/models/fields/language.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function getOptions()
$params = JComponentHelper::getParams('com_localise');
$reference = $params->get('reference', 'en-GB');

if (version_compare(JVERSION, '4.0', 'ge'))
if (version_compare(JVERSION, '3.7', 'ge'))
{
$admin = JLanguageHelper::getKnownLanguages(LOCALISEPATH_ADMINISTRATOR);
$site = JLanguageHelper::getKnownLanguages(LOCALISEPATH_SITE);
Expand All @@ -64,7 +64,7 @@ protected function getOptions()

if (JFolder::exists(LOCALISEPATH_INSTALLATION))
{
if (version_compare(JVERSION, '4.0', 'ge'))
if (version_compare(JVERSION, '3.7', 'ge'))
{
$install = JLanguageHelper::getKnownLanguages(LOCALISEPATH_INSTALLATION);
}
Expand Down
4 changes: 2 additions & 2 deletions component/admin/models/fields/referencelanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class JFormFieldReferenceLanguage extends JFormFieldList
*/
protected function getOptions()
{
if (version_compare(JVERSION, '4.0', 'ge'))
if (version_compare(JVERSION, '3.7', 'ge'))
{
$admin = JLanguageHelper::getKnownLanguages(LOCALISEPATH_ADMINISTRATOR);
$site = JLanguageHelper::getKnownLanguages(LOCALISEPATH_SITE);
Expand All @@ -53,7 +53,7 @@ protected function getOptions()

if (JFolder::exists(LOCALISEPATH_INSTALLATION))
{
if (version_compare(JVERSION, '4.0', 'ge'))
if (version_compare(JVERSION, '3.7', 'ge'))
{
$installation = JLanguageHelper::getKnownLanguages(LOCALISEPATH_INSTALLATION);
}
Expand Down
2 changes: 1 addition & 1 deletion component/admin/models/translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ protected function preprocessForm(JForm $form, $item, $group = 'content')

if (!array_key_exists($client, $languages))
{
if (version_compare(JVERSION, '4.0', 'ge'))
if (version_compare(JVERSION, '3.7', 'ge'))
{
$languages[$client] = JLanguageHelper::getKnownLanguages(constant('LOCALISEPATH_' . strtoupper($client)));
}
Expand Down

0 comments on commit 1da5baf

Please sign in to comment.