1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-15 03:05:26 +02:00

Bump version to 3.0.91

This commit is contained in:
Ryan Cramer
2018-02-09 10:10:09 -05:00
parent 0630b3a3c3
commit 1f6ae656dc
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -45,7 +45,7 @@ class ProcessWire extends Wire {
* Reversion revision number
*
*/
const versionRevision = 90;
const versionRevision = 91;
/**
* Version suffix string (when applicable)