Joomla 1.5 and 1.6 -- JFactory::getConfig

83 views
Skip to first unread message

sid

unread,
Sep 28, 2010, 4:49:11 PM9/28/10
to joomla-...@googlegroups.com
While working on a project, I noticed "language" variable is defaulted to "en-GB" in config.php (libraries/joomla/config.php).
However the variable is never shown in configuration.php. Is there any reason for this? All the config variables should also be available in configuration.php and after the installation we should just load configuration.php and never use config.php file.
Can some one shed some light on this?

Thanks
Sudhi

elin

unread,
Oct 4, 2010, 2:57:50 PM10/4/10
to Joomla! CMS Development
You set the default language in the language manager.

Elin

Ronildo Costa

unread,
Oct 4, 2010, 3:14:41 PM10/4/10
to joomla-...@googlegroups.com
Well, I spent a lot of time trying to figure out where Joomla store the language variable...
The variable is stored at the table jos_component (row Language Manager, usually id 23) on params

--
Roni Costa
blog: http://www.ronildo.com.br/blog
msn: ronild...@uol.com.br
skype: ronildo.costa
twitter: twitter.com/ronildo



--
You received this message because you are subscribed to the Google Groups "Joomla! CMS Development" group.
To post to this group, send an email to joomla-...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-cm...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-cms?hl=en-GB.

sid

unread,
Oct 4, 2010, 6:57:35 PM10/4/10
to joomla-...@googlegroups.com
Ideally this should have been available in configuration.php as well.
The Language Manager actually pushes this variable to the configuration. The config.php should only be used during installation and not after that.
However - I think, the getConfig Code does indicate that it is reading from config.php if the file is null.

The code logic should be
1. Check if configuration.php exists, if yes - read it from there or read it from config.php.
2. I can open this as a bug in 1.6 and fix it.
3. With 1.5 - not sure when it would be released next.

Thanks
Sudhi
--
Thanks & Regards
Sudhi
Founder & Chief Architect
Hooduku Inc
Plexicloud
1.888.262.8389
http://www.hooduku.com
http://www.plexicloud.com



Reply all
Reply to author
Forward
0 new messages