This patch is for i18n module compatibility. If the i18n module is enabled, then it only shows the node with the same language or without language. If the i18n module is NOT enabled, then it uses the original algorithm.

It works for me, please consider to commit it, thanks.

This is a separate issue (for Localizer module) from 150090

CommentFileSizeAuthor
#2 similarterms.patch1.28 KBablivio
similarterms.diff1.93 KBdennys

Comments

Anonymous’s picture

Great. It works for me as well! Please integrate it into the module.

ablivio’s picture

StatusFileSize
new1.28 KB

Here is a better (?) way to do it.

Instead of directly calling db_query(), put the SQL query in $sql variable, then use db_rewrite_sql(), which is hooked by i18n module and will perform the required adaptations.

Hope this helps!

-- Denis.

marcor’s picture

Just did the same as in ablivio's similarterms.patch. Looks good and works well to achieve i18n compativility.

rmiddle’s picture

Status: Needs review » Fixed

That is a simple change. Added to CVS for both 5 and 6.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.