Language
elgwiedo - July 15, 2009 - 09:54
| Project: | ScrollText |
| Version: | 6.x-1.0-alpha1 |
| Component: | Code |
| Category: | feature request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
Although the scrolltext feature works as expected, it lacks language support. This is a must have for this module.

#1
I have patched mine by replacing the following in scrolltext.module :
$sql = "SELECT n.title, n.nid FROM {node} n WHERE n.status = 1 and n.type IN ($scrolltext_nodetype) "
With:
//gives us access to the language variables
global $language;
$sql = "SELECT n.title, n.nid FROM {node} n WHERE n.status = 1 and n.language = '$language->language' and n.type IN ($scrolltext_nodetype) "