mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Bump version to 3.0.91
This commit is contained in:
@@ -591,7 +591,7 @@ class Pageimage extends Pagefile {
|
||||
$width = (int) $width;
|
||||
$height = (int) $height;
|
||||
|
||||
if($options['cropping'] === true && empty($options['cropExtra']) && $options['focus'] && $this->hasFocus) {
|
||||
if($options['cropping'] === true && empty($options['cropExtra']) && $options['focus'] && $this->hasFocus && $width && $height) {
|
||||
// crop to focus area
|
||||
$focus = $this->focus();
|
||||
$focus['zoom'] = 0; // not yet supported
|
||||
@@ -1165,7 +1165,8 @@ class Pageimage extends Pagefile {
|
||||
$o['forceNew'] = true;
|
||||
$o['suffix'] = $info['suffix'];
|
||||
if(is_file($info['path'])) unlink($info['path']);
|
||||
|
||||
|
||||
/*
|
||||
if(!$info['width'] && $info['actualWidth']) {
|
||||
$info['width'] = $info['actualWidth'];
|
||||
$options['nameWidth'] = 0;
|
||||
@@ -1174,6 +1175,7 @@ class Pageimage extends Pagefile {
|
||||
$info['height'] = $info['actualHeight'];
|
||||
$options['nameHeight'] = 0;
|
||||
}
|
||||
*/
|
||||
|
||||
if($info['crop'] && preg_match('/^x(\d+)y(\d+)$/', $info['crop'], $matches)) {
|
||||
// dimensional cropping info contained in filename
|
||||
|
@@ -45,7 +45,7 @@ class ProcessWire extends Wire {
|
||||
* Reversion revision number
|
||||
*
|
||||
*/
|
||||
const versionRevision = 90;
|
||||
const versionRevision = 91;
|
||||
|
||||
/**
|
||||
* Version suffix string (when applicable)
|
||||
|
Reference in New Issue
Block a user