It seems that changing those settings in config.php has no point, what’s defined in the database stays leading.
Is this a bug or feature?
I don’t see the point to add it to the config.php when it’s not used (AFAIK).
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
August 21, 2010 5:57pm
Subscribe [3]#1 / Aug 21, 2010 5:57pm
It seems that changing those settings in config.php has no point, what’s defined in the database stays leading.
Is this a bug or feature?
I don’t see the point to add it to the config.php when it’s not used (AFAIK).
#2 / Aug 23, 2010 2:22am
J3roen,
site_name is certainly used and can already be overridden - it’s used to specify the current msm site
site_label however cannot be overridden. This is not a bug
See Pascal’s reply in this following Bug Report
https://support.ellislab.com/bugs/detail/12866/#8209
#3 / Aug 23, 2010 3:51am
Hi John,
Thanks for the reply!
I’ve read the bug_report, but I’ve tried changing the site_name in index.php as well as config.php. {site_name} keeps returning the value that’s in the database. Can you confirm this behavior?
#4 / Aug 23, 2010 6:37pm
Try this in your index.php file- the one… above your system folder- or in the case of an MSM site w/an index.php directing traffic- in that index.php:
$system_path = '../system';
$assign_to_config['site_name'] = 'dos';That do the trick? (only second line- other is there for context. That’s my second site in a subfolder’s index.php file).
#5 / Aug 25, 2010 5:09pm
Still not overriding the database value for me. It’s not a huge problem though.
#6 / Aug 26, 2010 4:00am
J3roen,
Still not overriding the database value for me.
It won’t override the value for you. It is there to reference the value in your database for using the MSM. So when you create a second site on MSM and put the index.php into the relevant sites folder you need to update this value to reflect what you called the site’s shortname you added when creating a new site in the control panel
It now knows where to look for your site’s preferences
Does that make sense?