mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-03-07 15:16:40 +08:00
fix l10n on option form
This commit is contained in:
parent
97d2d9cac2
commit
c82d9e55a4
@ -71,7 +71,10 @@ class OptionForm
|
||||
|
||||
// Assign name for option item
|
||||
if (! isset($params[1]) || Arr::get($params, 1) == OptionForm::AUTO_DETECT) {
|
||||
$params[1] = Arr::get(trans("options.$this->id.$params[0]"), 'title', trans("options.$this->id.$params[0]"));
|
||||
$params[1] = trans("options.$this->id.$params[0]");
|
||||
if ($params[1] == "options.$this->id.$params[0]") {
|
||||
$params[1] = trans("options.$this->id.$params[0].title");
|
||||
}
|
||||
}
|
||||
|
||||
$class = new ReflectionClass('App\Services\OptionForm'.Str::title($method));
|
||||
|
Loading…
Reference in New Issue
Block a user