translateOption Global by default

This commit is contained in:
yuri
2015-04-21 15:42:48 +03:00
parent 67d8c6cb17
commit 44ecebad03
+1 -1
View File
@@ -163,7 +163,7 @@ class Language
return $translated;
}
public function translateOption($value, $field, $scope)
public function translateOption($value, $field, $scope = 'Global')
{
$options = $this->get($scope. '.options.' . $field);
if (array_key_exists($value, $options)) {