Closed (fixed)
Project:
Drupal core
Version:
6.0
Component:
documentation
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2008 at 07:55 UTC
Updated:
4 Sep 2008 at 13:52 UTC
According to http://api.drupal.org/api/global/language/6, the $language global is an array, but in reality, it is an object, whose structure is taken from the languages table structure.
Comments
Comment #1
curtisain commentedAnd more important: how can we use that object?
Code like:
throws a "Fatal error: Cannot use object of type stdClass as array"
Comment #2
curtisain commentedJust found out:
does the trick. Silly me!
Comment #3
nielsbom commentedClosed the issue.
Changed the component to reflect the new component categorization. See http://drupal.org/node/301443
-nielsbom
Comment #4
yhager commentedDid you intend to close the issue? The docs are still wrong, so reopening.
Comment #5
betz commentedComment #6
betz commentedsorry, was wrong :)
Comment #7
emmajane commentedAPI docs; moved to core documentation.
Comment #8
dgorton commentedUpdated and committed to D6 and D7. Marking as rtbtc as a reminder to check actual api output (http://api.drupal.org/api/global/language) before closing.
Comment #9
dgorton commentedDone. closing.