Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Velluppillai <justin@innocraft.com>2021-12-10 01:00:53 +0300
committerGitHub <noreply@github.com>2021-12-10 01:00:53 +0300
commitcfb9a81f1bf761ee7ff9ef70749c46021c4471c1 (patch)
tree280e90031bf6e469bb24aaf070e610f3da88aefd /plugins/Diagnostics
parentc77bd82060e0567819d20c745e2bd873ef5998f9 (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.php8
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] ?? []);
}
}