Revert "Put in non-exception throwing handler for undefined methods on Medium objects"

This reverts commit 00971dee24.
This commit is contained in:
Andy Miller
2015-01-05 18:22:50 -07:00
parent fb3ee1187d
commit c515996adc

View File

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