diff options
author | Justin Velluppillai <justin@innocraft.com> | 2021-12-10 01:00:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-10 01:00:53 +0300 |
commit | cfb9a81f1bf761ee7ff9ef70749c46021c4471c1 (patch) | |
tree | 280e90031bf6e469bb24aaf070e610f3da88aefd /plugins/Diagnostics | |
parent | c77bd82060e0567819d20c745e2bd873ef5998f9 (diff) |
Updated shell_exec recommended message (#18469)
* Updated shell_exec recommended message
* Add _blank and noopener to external link
* Rename shell_exec translation string key
Diffstat (limited to 'plugins/Diagnostics')
-rw-r--r-- | plugins/Diagnostics/Diagnostic/RecommendedFunctionsCheck.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Diagnostics/Diagnostic/RecommendedFunctionsCheck.php b/plugins/Diagnostics/Diagnostic/RecommendedFunctionsCheck.php index 60c74c0460..123ac562b4 100644 --- a/plugins/Diagnostics/Diagnostic/RecommendedFunctionsCheck.php +++ b/plugins/Diagnostics/Diagnostic/RecommendedFunctionsCheck.php @@ -64,7 +64,7 @@ class RecommendedFunctionsCheck implements Diagnostic private function getHelpMessage($function) { $messages = array( - 'shell_exec' => 'Installation_SystemCheckFunctionHelp', + 'shell_exec' => 'Installation_SystemCheckShellExecHelp', 'set_time_limit' => 'Installation_SystemCheckTimeLimitHelp', 'mail' => 'Installation_SystemCheckMailHelp', 'parse_ini_file' => 'Installation_SystemCheckParseIniFileHelp', @@ -72,6 +72,10 @@ class RecommendedFunctionsCheck implements Diagnostic 'gzopen' => 'Installation_SystemCheckZlibHelp', ); - return $this->translator->translate($messages[$function]); + $translation_params = array( + 'shell_exec' => ["<a href='https://matomo.org/faq/troubleshooting/how-to-make-the-diagnostic-managing-processes-via-cli-to-display-ok/' rel='noopener' target='_blank'>", "</a>"] + ); + + return $this->translator->translate($messages[$function], $translation_params[$function] ?? []); } } |