모두 lang() 함수로 변경

This commit is contained in:
conory 2016-03-06 17:01:15 +09:00
parent fc09ea0d47
commit 90400e2b5f
82 changed files with 234 additions and 234 deletions

View file

@ -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;
}