On a site with zh-hans enabled, the following notice shows up when visiting:

Notice: Undefined index: zh in _mollom_supported_languages() (line 52 of sites/all/modules/contrib/mollom/mollom.admin.inc).

The $simplified_code = strtok($langcode, '-'); breaks the value added by the $mapped variable.

Another thing i've noticed is that pt-br does not seem to be supported by Mollom? The site has both pt-br and zh-hans enabled. I would love to be able and use Mollom with both these languages. Thanks!

Comments

Rob C created an issue. See original summary.

bessone’s picture

+1

Patil_kunal27’s picture

StatusFileSize
new525 bytes

Added fix for above issue, hope it will fix your issue..

anish.a’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 3: Fix_Notice_Undefined_index-2694091-2.patch, failed testing.

The last submitted patch, 3: Fix_Notice_Undefined_index-2694091-2.patch, failed testing.

The last submitted patch, 3: Fix_Notice_Undefined_index-2694091-2.patch, failed testing.

The last submitted patch, 3: Fix_Notice_Undefined_index-2694091-2.patch, failed testing.