Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#26 closed Bug (fixed)

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

Reported by: matt Owned by:
Priority: major Milestone: RobotRock
Component: Core Keywords:
Cc: Sensitive:

Description (last modified by matt)

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

Change History (12)

comment:1 Changed 6 years ago by matt (mattab)

  • Description modified (diff)

comment:2 Changed 6 years ago by matt (mattab)

  • Description modified (diff)

comment:3 Changed 6 years ago by matt (mattab)

  • Description modified (diff)

comment:4 Changed 6 years ago by matt (mattab)

  • Milestone set to Future features

comment:5 Changed 6 years ago by matt (mattab)

  • Milestone changed from Future features to DigitalVibes

comment:6 Changed 6 years ago by matt (mattab)

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

comment:7 Changed 6 years ago by matt (mattab)

  • Milestone changed from DigitalVibes to RobotRock

comment:8 Changed 5 years ago by matt (mattab)

fixed and added test in [930]

comment:9 Changed 5 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

comment:10 Changed 5 years ago by domtop

comment:11 Changed 5 years ago by spomoni

comment:12 Changed 5 years ago by spomoni

Note: See TracTickets for help on using tickets.