Block node not displayed - language test
flebas - February 17, 2009 - 18:49
| Project: | Node As Block |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Block node is not displayed. I do not have i18n installed.
With the following code change (line 310), it works.
Original code. $node->language is a string, but $language is an object.
// Don't show nodes in other languages than current. Integration with i18n node languages.
global $language;
if (empty($node->language) || $node->language == $language) {
return array(Modified code :
// Don't show nodes in other languages than current. Integration with i18n node languages.
global $language;
if (empty($node->language) || $node->language == $language->language) {
return array(
#1
Same problem found today. No i18n module but same patch
#2
Same problem, same resolution. :)
#3
Same here.
#4
I too can confirm that this will fix the problem. Just spent a few hours trying to find out the solution before finding this. Thanks!
#5
Patch
#6
Committed. Thanks.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.