?
avatar obuisard
obuisard
2 Nov 2017

Steps to reproduce the issue

Call from an extension to JHelperContent::getCurrentLanguage()

Expected result

Should return the language code.

Actual result

Undefined variable: langCode in getCurrentLanguage

There is a test on langCode but that variable is not set if the site is not multi-lingual.

System information (as much as possible)

since Joomla 3.7 apparently.

Additional comments

The function should be able to be called without assuming the site is multi-lingual.

avatar obuisard obuisard - open - 2 Nov 2017
avatar joomla-cms-bot joomla-cms-bot - change - 2 Nov 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Nov 2017
avatar infograf768
infograf768 - comment - 3 Nov 2017

Closing as we have a patch #18485

avatar infograf768 infograf768 - change - 3 Nov 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-11-03 06:02:49
Closed_By infograf768
avatar infograf768 infograf768 - close - 3 Nov 2017

Add a Comment

Login with GitHub to post a comment