#2025 좀더 근본적인 해결: 모듈 autoload시 lang파일 자동 로딩하도록 변경

This commit is contained in:
Kijin Sung 2022-12-15 22:52:00 +09:00
parent 4c261abfb8
commit 0fafb1cf6b
4 changed files with 21 additions and 15 deletions

View file

@ -134,8 +134,7 @@ class memberModel extends member
{
if($value->isDefaultForm && empty($value->isCustomTitle))
{
$title = in_array($value->name, ['signature', 'profile_image', 'image_name', 'image_mark']) ? 'member.' . $value->name : $value->name;
$config->signupForm[$key]->title = lang($title);
$config->signupForm[$key]->title = lang($value->name);
}
$config->signupForm[$key]->isPublic = $config->signupForm[$key]->isPublic ?? 'Y';
}

View file

@ -21,7 +21,7 @@
<label class="x_control-label" for="limit_day">{$lang->limit_day}</label>
<div class="x_controls">
<input type="number" min="0" id="limit_day" name="limit_day" value="{$config->limit_day}" /> {$lang->unit_day}
<input type="text" name="limit_day_description" value="{escape($config->limit_day_description)}" placeholder="{$lang->limit_day_description}" style="width:90%" class="lang_code" />
<input type="text" name="limit_day_description" value="{$config->limit_day_description|autoescape}" placeholder="{$lang->limit_day_description}" style="width:90%" class="lang_code" />
<p class="x_help-block">{$lang->about_limit_day}</p>
</div>
</div>
@ -122,9 +122,9 @@
<div class="wrap">
<button type="button" class="dragBtn">Move to</button>
<!--@if(in_array($item->name, ['birthday', 'signature', 'profile_image', 'image_name', 'image_mark']))-->
<input class="_title_edit lang_code" type="text" name="{$item->name}_title_edit" value="{escape($item->title)}" placeholder="{lang($item->name)}" />
<input class="_title_edit lang_code" type="text" name="{$item->name}_title_edit" value="{$item->title|autoescape}" placeholder="{lang($item->name)}" />
<!--@else-->
<span class="_title" style="display:inline-block;white-space:pre-line;overflow:inherit;width:120px;text-overflow:ellipsis" title="{$item->title}">{$item->title}</span>
<span class="_title" style="display:inline-block;white-space:pre-line;overflow:inherit;width:120px;text-overflow:ellipsis" title="{$item->title|autoescape}">{$item->title}</span>
<!--@endif-->
</div>
</th>