mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-05 01:52:17 +09:00
#695 fixed file extension filters
This commit is contained in:
parent
1aa5607a0a
commit
98de6e921f
1 changed files with 3 additions and 3 deletions
|
|
@ -335,8 +335,8 @@ 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('/^.*(icon).*$/',$type)) {
|
if(!preg_match('/^.*\.ico$/i',$type)) {
|
||||||
Context::set('msg', '*.icon '.Context::getLang('msg_possible_only_file'));
|
Context::set('msg', '*.ico '.Context::getLang('msg_possible_only_file'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if($width && $height && ($width != '16' || $height != '16')) {
|
if($width && $height && ($width != '16' || $height != '16')) {
|
||||||
|
|
@ -346,7 +346,7 @@ class installAdminController extends install
|
||||||
}
|
}
|
||||||
else if($iconname == 'mobicon.png')
|
else if($iconname == 'mobicon.png')
|
||||||
{
|
{
|
||||||
if(!preg_match('/^.*(png).*$/',$type)) {
|
if(!preg_match('/^.*\.png$/i',$type)) {
|
||||||
Context::set('msg', '*.png '.Context::getLang('msg_possible_only_file'));
|
Context::set('msg', '*.png '.Context::getLang('msg_possible_only_file'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue