Skip to content

Make "plugins" CLI option usable on Matomo install#57

Open
mbrodala wants to merge 1 commit into
Digitalist-Open-Cloud:5.x-devfrom
mbrodala:patch-3
Open

Make "plugins" CLI option usable on Matomo install#57
mbrodala wants to merge 1 commit into
Digitalist-Open-Cloud:5.x-devfrom
mbrodala:patch-3

Conversation

@mbrodala

Copy link
Copy Markdown
Contributor

This actually allows using this option to define the list of plugins to activate. Before the "PluginsInstalled" config option had a higher priority and the CLI option was only used if the config option was empty. And this is impossible: even if not defined in config.ini.php or common.config.ini.php, there is always the list from Matomo's global.ini.php which cannot be cleared.

This is fixed now by processing the CLI option before the config option. Processing of the install file first is left unchanged.

See https://github.com/matomo-org/matomo/blob/0ab4a4b4dae07ddc4d98ac06c703aa0118b22891/config/global.ini.php#L1285

This actually allows using this option to define the list of plugins to activate. Before the "PluginsInstalled" config option had a higher priority and the CLI option was only used if the config option was empty. And this is impossible: even if not defined in config.ini.php or common.config.ini.php, there is always the list from Matomo's global.ini.php which cannot be cleared.

This is fixed now by processing the CLI option before the config option. Processing of the install file first is left unchanged.

See https://github.com/matomo-org/matomo/blob/0ab4a4b4dae07ddc4d98ac06c703aa0118b22891/config/global.ini.php#L1285
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant