mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Implement gettext() calls on array_intersect_key.inc
This commit is contained in:
parent
bfa790df99
commit
da0031765e
@ -34,7 +34,7 @@ if (!function_exists('array_intersect_key')) {
|
||||
{
|
||||
$args = func_get_args();
|
||||
if (count($args) < 2) {
|
||||
user_error('Wrong parameter count for array_intersect_key()', E_USER_WARNING);
|
||||
user_error(gettext('Wrong parameter count for array_intersect_key()'), E_USER_WARNING);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -42,8 +42,8 @@ if (!function_exists('array_intersect_key')) {
|
||||
$array_count = count($args);
|
||||
for ($i = 0; $i !== $array_count; $i++) {
|
||||
if (!is_array($args[$i])) {
|
||||
user_error('array_intersect_key() Argument #' .
|
||||
($i + 1) . ' is not an array', E_USER_WARNING);
|
||||
user_error(gettext('array_intersect_key() Argument #') .
|
||||
($i + 1) . gettext(' is not an array'), E_USER_WARNING);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -64,4 +64,4 @@ if (!function_exists('array_intersect_key')) {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user