Fix syntax error.

This commit is contained in:
Jakob Sack 2013-08-01 21:46:52 +02:00
parent eee2c369d9
commit 2f17dcdba8
1 changed files with 2 additions and 1 deletions

View File

@ -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{