mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
모두 lang() 함수로 변경
This commit is contained in:
parent
fc09ea0d47
commit
90400e2b5f
82 changed files with 234 additions and 234 deletions
|
|
@ -927,13 +927,13 @@ class layoutAdminController extends layout
|
|||
|
||||
if(!$img['tmp_name'] || !is_uploaded_file($img['tmp_name']) || !checkUploadedFile($img['tmp_name']))
|
||||
{
|
||||
Context::set('msg', Context::getLang('upload failed'));
|
||||
Context::set('msg', lang('upload failed'));
|
||||
return;
|
||||
}
|
||||
|
||||
if(!preg_match('/\.(jpg|jpeg|gif|png|swf)$/i', $img['name']))
|
||||
{
|
||||
Context::set('msg', Context::getLang('msg_layout_image_target'));
|
||||
Context::set('msg', lang('msg_layout_image_target'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -941,7 +941,7 @@ class layoutAdminController extends layout
|
|||
$tmpPath = $path . 'tmp/';
|
||||
if(!FileHandler::makeDir($tmpPath))
|
||||
{
|
||||
Context::set('msg', Context::getLang('make directory failed'));
|
||||
Context::set('msg', lang('make directory failed'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -952,7 +952,7 @@ class layoutAdminController extends layout
|
|||
|
||||
if(!move_uploaded_file($img['tmp_name'], $tmpFileName))
|
||||
{
|
||||
Context::set('msg', Context::getLang('move file failed'));
|
||||
Context::set('msg', lang('move file failed'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -990,7 +990,7 @@ class layoutAdminController extends layout
|
|||
$output = $this->updateLayout($args);
|
||||
if(!$output->toBool())
|
||||
{
|
||||
Context::set('msg', Context::getLang($output->getMessage()));
|
||||
Context::set('msg', lang($output->getMessage()));
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue