修复文件上传生成缩图函数名不正确
This commit is contained in:
parent
6e1c7d1bba
commit
6e59a7dd41
|
@ -50,7 +50,7 @@ class MediaController extends DefaultController
|
||||||
|
|
||||||
if (in_array($mimeType, $fileTypes)) {
|
if (in_array($mimeType, $fileTypes)) {
|
||||||
$path = pathinfo($path.'/'.$filename);
|
$path = pathinfo($path.'/'.$filename);
|
||||||
$thumb = $path['dirname'].'/'.thumb($upload_path.'/'.$filename, 750);
|
$thumb = $path['dirname'].'/'. image_thumb($upload_path.'/'.$filename, 750);
|
||||||
$data['thumb'] = $thumb;
|
$data['thumb'] = $thumb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ class MediaController extends DefaultController
|
||||||
$path = pathinfo($file);
|
$path = pathinfo($file);
|
||||||
$thumb = $path['dirname'].'/t750_'.$path['basename'];
|
$thumb = $path['dirname'].'/t750_'.$path['basename'];
|
||||||
if (!is_file(upload_path().'/'.$thumb)) {
|
if (!is_file(upload_path().'/'.$thumb)) {
|
||||||
thumb(upload_path().'/'.$file, 750);
|
image_thumb(upload_path().'/'.$file, 750);
|
||||||
}
|
}
|
||||||
$row['path'] = $file;
|
$row['path'] = $file;
|
||||||
$row['thumb'] = $thumb;
|
$row['thumb'] = $thumb;
|
||||||
|
|
Loading…
Reference in New Issue