diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-06-09 11:55:32 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2017-06-09 11:55:32 +0300 |
commit | 73a00c020d1668d866a2196c3e1a0a6e7aed06b7 (patch) | |
tree | 6f230d9c0d914fbf75d1f4ad948c090aa05f9263 | |
parent | d3b5a4644b3f6d493590d346f799aa8a93b3d057 (diff) |
"Send an email when a plugin update is available" is default since Piwik 3.0.0-b1 (#11770)
* "Send an email when a plugin update is available" is On by default since Piwik 3.0.0-b1
follows up https://github.com/piwik/piwik/pull/10691
* UI screenshot
6 files changed, 12 insertions, 12 deletions
diff --git a/plugins/CoreUpdater/SystemSettings.php b/plugins/CoreUpdater/SystemSettings.php index bc09bfaec5..70bab5bdd1 100644 --- a/plugins/CoreUpdater/SystemSettings.php +++ b/plugins/CoreUpdater/SystemSettings.php @@ -100,8 +100,8 @@ class SystemSettings extends \Piwik\Settings\Plugin\SystemSettings return $this->makeSetting('enable_plugin_update_communication', $default = true, FieldConfig::TYPE_BOOL, function (FieldConfig $field) { $field->introduction = Piwik::translate('CoreAdminHome_SendPluginUpdateCommunication'); $field->uiControl = FieldConfig::UI_CONTROL_RADIO; - $field->availableValues = array('1' => Piwik::translate('General_Yes'), - '0' => sprintf('%s (%s)', Piwik::translate('General_No'), Piwik::translate('General_Default'))); + $field->availableValues = array('1' => sprintf('%s (%s)', Piwik::translate('General_Yes'), Piwik::translate('General_Default')), + '0' => Piwik::translate('General_No')); $field->inlineHelp = Piwik::translate('CoreAdminHome_SendPluginUpdateCommunicationHelp'); }); } diff --git a/tests/PHPUnit/System/expected/test_ImportLogs__CorePluginsAdmin.getSystemSettings.xml b/tests/PHPUnit/System/expected/test_ImportLogs__CorePluginsAdmin.getSystemSettings.xml index 6008a52144..8c48d07315 100644 --- a/tests/PHPUnit/System/expected/test_ImportLogs__CorePluginsAdmin.getSystemSettings.xml +++ b/tests/PHPUnit/System/expected/test_ImportLogs__CorePluginsAdmin.getSystemSettings.xml @@ -35,8 +35,8 @@ <uiControlAttributes> </uiControlAttributes> <availableValues> - <row key="1">Yes</row> - <row key="0">No (Default)</row> + <row key="1">Yes (Default)</row> + <row key="0">No</row> </availableValues> <description /> <inlineHelp>An email will be sent to Super Users when there is a new version available for a plugin.</inlineHelp> diff --git a/tests/PHPUnit/System/expected/test_OneVisitorTwoVisits__CorePluginsAdmin.getSystemSettings.xml b/tests/PHPUnit/System/expected/test_OneVisitorTwoVisits__CorePluginsAdmin.getSystemSettings.xml index 0a3d2da7c7..64cee9f3ac 100644 --- a/tests/PHPUnit/System/expected/test_OneVisitorTwoVisits__CorePluginsAdmin.getSystemSettings.xml +++ b/tests/PHPUnit/System/expected/test_OneVisitorTwoVisits__CorePluginsAdmin.getSystemSettings.xml @@ -35,8 +35,8 @@ <uiControlAttributes> </uiControlAttributes> <availableValues> - <row key="1">Yes</row> - <row key="0">No (Default)</row> + <row key="1">Yes (Default)</row> + <row key="0">No</row> </availableValues> <description /> <inlineHelp>An email will be sent to Super Users when there is a new version available for a plugin.</inlineHelp> diff --git a/tests/PHPUnit/System/expected/test_noVisit_PeriodIsLast__CorePluginsAdmin.getSystemSettings.xml b/tests/PHPUnit/System/expected/test_noVisit_PeriodIsLast__CorePluginsAdmin.getSystemSettings.xml index 6008a52144..8c48d07315 100644 --- a/tests/PHPUnit/System/expected/test_noVisit_PeriodIsLast__CorePluginsAdmin.getSystemSettings.xml +++ b/tests/PHPUnit/System/expected/test_noVisit_PeriodIsLast__CorePluginsAdmin.getSystemSettings.xml @@ -35,8 +35,8 @@ <uiControlAttributes> </uiControlAttributes> <availableValues> - <row key="1">Yes</row> - <row key="0">No (Default)</row> + <row key="1">Yes (Default)</row> + <row key="0">No</row> </availableValues> <description /> <inlineHelp>An email will be sent to Super Users when there is a new version available for a plugin.</inlineHelp> diff --git a/tests/PHPUnit/System/expected/test_noVisit__CorePluginsAdmin.getSystemSettings.xml b/tests/PHPUnit/System/expected/test_noVisit__CorePluginsAdmin.getSystemSettings.xml index 6008a52144..8c48d07315 100644 --- a/tests/PHPUnit/System/expected/test_noVisit__CorePluginsAdmin.getSystemSettings.xml +++ b/tests/PHPUnit/System/expected/test_noVisit__CorePluginsAdmin.getSystemSettings.xml @@ -35,8 +35,8 @@ <uiControlAttributes> </uiControlAttributes> <availableValues> - <row key="1">Yes</row> - <row key="0">No (Default)</row> + <row key="1">Yes (Default)</row> + <row key="0">No</row> </availableValues> <description /> <inlineHelp>An email will be sent to Super Users when there is a new version available for a plugin.</inlineHelp> diff --git a/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_general.png b/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_general.png index 08e94bbc9e..ecf4ec3d70 100644 --- a/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_general.png +++ b/tests/UI/expected-screenshots/UIIntegrationTest_admin_settings_general.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:127712b381c85f7b7059c74fcb44010591f131ee0ec8eaf0ca9b8e7e2064c770 -size 654055 +oid sha256:c9291466e1d0a7c6779da21f6b5bbf14cb2f8c83c4dc7dc62b3a669c9fe98c14 +size 653985 |