Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.4

Bug #11881 Translation2::getLang(...,'array') returns ID as 'id' instead of 'lang_id'
Submitted: 2007-08-21 08:11 UTC
From: clue Assigned: quipo
Status: Closed Package: Translation2 (version 2.0.0RC1)
PHP Version: 5.2.3 OS: Debian GNU/Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 - 2 = ?

 
 [2007-08-21 08:11 UTC] clue (Christian Lück)
Description: ------------ Translation2::getLang(...) with the format parameter 'array' is the only method which returns the language ID in the array key 'id' instead of the usual 'lang_id' used in all Translation2_Admin methods. This is particularly confusing because it's an odd and undocumented behavior.

Comments

 [2007-09-19 21:42 UTC] quipo (Lorenzo Alberton)
I've added a 'lang_id' alias to 'id'.