Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The user config file cannot only define a variable, it has to define the whole "category" of variables #5446

Closed
mattab opened this issue Jan 3, 2008 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.

Comments

@mattab
Copy link
Member

mattab commented Jan 3, 2008

In the config.ini.php, it is not possible to set a configuration settings in a config file without setting the whole category in this config file.

We should have some sort of merging that would make possible to set only a sub configuration variable from the global.ini.php into the config.ini.php. This way, during an upgrade, we could keep only the config/config.ini.php and overwrite the other config files with the updated piwik version and we would keep the user changes.

Example

In global.ini.php
[Test]

value1=test1 value2=test2

In config.ini.php it is NOT YET possible to change only value1 doing something like
[Test]

value1=test1edited

Currently the user has to paste the whole category to change only this variable
[Test]

value1=test1edited value2=test2
@mattab
Copy link
Member Author

mattab commented Oct 10, 2008

Solution: we should merge the config file before reading them using parse_ini_file?

@mattab
Copy link
Member Author

mattab commented Feb 28, 2009

fixed and added test in 930

@mattab mattab added this to the RobotRock milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants