mirror of
https://github.com/getgrav/grav.git
synced 2026-07-07 11:53:29 +02:00
Revert "Put in non-exception throwing handler for undefined methods on Medium objects"
This reverts commit 00971dee24.
This commit is contained in:
@@ -313,12 +313,7 @@ class Medium extends Data
|
||||
if (!$this->image) {
|
||||
$this->image();
|
||||
}
|
||||
|
||||
if (method_exists($this->image, $method)) {
|
||||
$result = call_user_func_array(array($this->image, $method), $args);
|
||||
} else {
|
||||
$result = null;
|
||||
}
|
||||
$result = call_user_func_array(array($this->image, $method), $args);
|
||||
|
||||
// Returns either current object or result of the action.
|
||||
return $result instanceof ImageFile ? $this : $result;
|
||||
|
||||
Reference in New Issue
Block a user