mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Unqualified function/constant reference and much more
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
b08f6e898b
commit
78af495048
68 changed files with 273 additions and 277 deletions
|
@ -26,12 +26,12 @@ function get_img_size_format($width, $height)
|
|||
round($width * ($max_width / $width)),
|
||||
round($height * ($max_width / $width))
|
||||
);
|
||||
} else {
|
||||
return array(
|
||||
round($width * ($max_width / $height)),
|
||||
round($height * ($max_width / $height))
|
||||
);
|
||||
}
|
||||
|
||||
return array(
|
||||
round($width * ($max_width / $height)),
|
||||
round($height * ($max_width / $height))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -44,9 +44,9 @@ function is_imagick()
|
|||
if ($attach_config['img_imagick'] != '') {
|
||||
$imagick = $attach_config['img_imagick'];
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -111,8 +111,6 @@ function create_thumbnail($source, $new_file, $mimetype)
|
|||
|
||||
[$new_width, $new_height] = get_img_size_format($width, $height);
|
||||
|
||||
$tmp_path = $old_file = '';
|
||||
|
||||
$used_imagick = false;
|
||||
|
||||
if (is_imagick()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue