"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "system/src/Grav/Common/Page/Medium/ImageMedium.php" between
grav-v1.6.25.zip and grav-v1.6.26.zip

About: Grav is a fast, simple, and flexible flat-file based CMS platform (using YAML and PHP). Contents are just simple markdown files in folders with optional extensions via API and hooks.

ImageMedium.php  (grav-v1.6.25):ImageMedium.php  (grav-v1.6.26)
skipping to change at line 519 skipping to change at line 519
if (!$value || $value === 'auto') { if (!$value || $value === 'auto') {
$this->attributes['height'] = $this->get('height'); $this->attributes['height'] = $this->get('height');
} else { } else {
$this->attributes['height'] = $value; $this->attributes['height'] = $value;
} }
return $this; return $this;
} }
/** /**
* Handle this commonly used variant
*/
public function cropZoom()
{
$this->__call('zoomCrop', func_get_args());
return $this;
}
/**
* Forward the call to the image processing method. * Forward the call to the image processing method.
* *
* @param string $method * @param string $method
* @param mixed $args * @param mixed $args
* @return $this|mixed * @return $this|mixed
*/ */
public function __call($method, $args) public function __call($method, $args)
{ {
if ($method === 'cropZoom') {
$method = 'zoomCrop';
}
if (!\in_array($method, self::$magic_actions, true)) { if (!\in_array($method, self::$magic_actions, true)) {
return parent::__call($method, $args); return parent::__call($method, $args);
} }
// Always initialize image. // Always initialize image.
if (!$this->image) { if (!$this->image) {
$this->image(); $this->image();
} }
try { try {
 End of changes. 2 change blocks. 
4 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)