1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-27 11:04:15 +02:00

Merge remote-tracking branch 'github-bantu/ticket/11361' into develop-olympus

* github-bantu/ticket/11361:
  [ticket/11361] Make sure that array passed to strtr() has the proper format.
This commit is contained in:
Nils Adermann 2013-02-24 17:50:04 +01:00
commit 639110766c

View File

@ -2156,7 +2156,8 @@ class user extends session
'is_short' => strpos($format, '|'),
'format_short' => substr($format, 0, strpos($format, '|')) . '||' . substr(strrchr($format, '|'), 1),
'format_long' => str_replace('|', '', $format),
'lang' => $this->lang['datetime'],
// Filter out values that are not strings (e.g. arrays) for strtr().
'lang' => array_filter($this->lang['datetime'], 'is_string'),
);
// Short representation of month in format? Some languages use different terms for the long and short format of May