Active
Project:
Custom Page
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2010 at 18:57 UTC
Updated:
24 Nov 2010 at 19:08 UTC
Jump to comment: Most recent file
Custompage calls node_load with a language parameter when you pass a title and type to the function. This uses the sites default language as a parameter to the node_load call. Some nodes may not have a language assigned and thus the default language (which always returns 'en' if its not set) will cause the node not to be found.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | custompage-981002.patch | 1.22 KB | jec006 |
Comments
Comment #1
jec006 commentedTo solve this issue I have added a parameter (which defaults to true) to the custompage_node_tile to allow you to NOT use a language parameter in the query. There should be no impact to people who are using this function as the parameter defaults to the old behavior - but this change will allow for sites which have nodes with no language to still use custompage_node_tile with a title and type.