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:
authorMatthieu Aubry <mattab@users.noreply.github.com>2016-11-30 23:46:06 +0300
committerGitHub <noreply@github.com>2016-11-30 23:46:06 +0300
commit3e524abc661d401c55ec8b3439a0125eae0f088d (patch)
treebaf222475f604e306a8c81676d30bc6d17df094a /core/UrlHelper.php
parent8457bc7002feb25f428fffaca6d741ab9d6856bd (diff)
Use placeholder in translation string (#10924)
* Use placeholder in translation string * Fix the system test
Diffstat (limited to 'core/UrlHelper.php')
-rw-r--r--core/UrlHelper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/UrlHelper.php b/core/UrlHelper.php
index ae4f3c622d..f9d2bac83e 100644
--- a/core/UrlHelper.php
+++ b/core/UrlHelper.php
@@ -27,7 +27,7 @@ class UrlHelper
*
* @return true if $test matches or is equal to one of the regex/string in $patterns, false otherwise.
*/
- protected static function in_array_reg($test, $patterns)
+ protected static function in_array_matches_regex($test, $patterns)
{
foreach($patterns as $val) {
if(@preg_match($val, null) === false) {
@@ -62,7 +62,7 @@ class UrlHelper
// decode encoded square brackets
$name = str_replace(array('%5B', '%5D'), array('[', ']'), $name);
- if (!self::in_array_reg(strtolower($name), $parametersToExclude)) {
+ if (!self::in_array_matches_regex(strtolower($name), $parametersToExclude)) {
if (is_array($value)) {
foreach ($value as $param) {
if ($param === false) {