mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
favicon 등록 실패 문제 해결. ico 파일을 올리게 되면 type 으로 image/vnd.microsoft.icon 가 설정되기 때문에 .ico 가 아닌 .icon 으로 해야한다.
This commit is contained in:
parent
4778fcc122
commit
f26c961226
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ class installAdminController extends install
|
||||||
list($width, $height, $type_no, $attrs) = @getimagesize($target_file);
|
list($width, $height, $type_no, $attrs) = @getimagesize($target_file);
|
||||||
if($iconname == 'favicon.ico')
|
if($iconname == 'favicon.ico')
|
||||||
{
|
{
|
||||||
if(!preg_match('/^.*\.ico$/i',$type)) {
|
if(!preg_match('/^.*\.icon$/i',$type)) {
|
||||||
Context::set('msg', '*.ico '.Context::getLang('msg_possible_only_file'));
|
Context::set('msg', '*.ico '.Context::getLang('msg_possible_only_file'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue