Switch to PHP API calls instead of substr() to get extension
This commit is contained in:
parent
0e64245e90
commit
65ce549848
|
@ -60,7 +60,7 @@ if ( $ext == "cbz" ) {
|
||||||
$myfile = $comicoutputfull . $file;
|
$myfile = $comicoutputfull . $file;
|
||||||
$mynewfile = $comicoutputfull . str_replace("#", "", $file);
|
$mynewfile = $comicoutputfull . str_replace("#", "", $file);
|
||||||
//$myext = strtolower(substr($file, -3));
|
//$myext = strtolower(substr($file, -3));
|
||||||
$myext = strtolower(pathinfo($imgname)['extension']);
|
$myext = strtolower(pathinfo($myfile)['extension']);
|
||||||
if ( ($myext == "jpg") || ($myext == "png") || ($myext == "webp") ) {
|
if ( ($myext == "jpg") || ($myext == "png") || ($myext == "webp") ) {
|
||||||
rename($myfile, $mynewfile);
|
rename($myfile, $mynewfile);
|
||||||
$files[] = basename($mynewfile);
|
$files[] = basename($mynewfile);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user