Skip to content

Commit

Permalink
Fix syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobsack committed Aug 1, 2013
1 parent eee2c36 commit 2f17dcd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/l10n/string.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function __toString() {
$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{
Expand Down

0 comments on commit 2f17dcd

Please sign in to comment.