Skip to content

Commit

Permalink
Fix l10n property error with parseOne
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Dec 19, 2018
1 parent a8f9af2 commit 55919e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Charcoal/Property/AbstractProperty.php
Expand Up @@ -353,7 +353,11 @@ final public function parseVal($val)
}
$val = array_map([ $this, 'parseOne' ], $val);
} else {
$val = $this->parseOne($val);
if ($this->l10n()) {
$val = $this->translator()->translation($val)->sanitize([$this, 'parseOne']);
} else {
$val = $this->parseOne($val);
}
}

return $val;
Expand Down

0 comments on commit 55919e6

Please sign in to comment.