diff options
-rw-r--r-- | lib/l10n/string.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/l10n/string.php b/lib/l10n/string.php index c72b744a7ec..c78b06428d3 100644 --- a/lib/l10n/string.php +++ b/lib/l10n/string.php @@ -23,7 +23,8 @@ class OC_L10N_String{ $text = $this->text; if(array_key_exists($this->text, $translations)) { if(is_array($translations[$this->text])) { - $id = $l10n->getPluralFormFunction()($count); + $fn = $l10n->getPluralFormFunction(); + $id = $fn($count); $text = $translations[$this->text][$id]; } else{ |