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

florent.jousseaume - February 19, 2009 - 15:06

Same problem found today. No i18n module but same patch

#2

Axi - March 31, 2009 - 07:39

Same problem, same resolution. :)

#3

victorkane - May 10, 2009 - 11:37

Same here.

#4

libeco - June 23, 2009 - 09:51

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

gaele - July 20, 2009 - 14:32
Status:active» needs review

Patch

AttachmentSize
nodeasblock.module.patch 661 bytes

#6

dropcube - August 1, 2009 - 22:30
Status:needs review» fixed

Committed. Thanks.

#7

System Message - August 15, 2009 - 22:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.