From c515996adcf09761e7e9d4dfb705d69933f83361 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 5 Jan 2015 18:22:50 -0700 Subject: [PATCH] Revert "Put in non-exception throwing handler for undefined methods on Medium objects" This reverts commit 00971dee2437a51753bf3d80c0d53600b2940e49. --- system/src/Grav/Common/Page/Medium.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/system/src/Grav/Common/Page/Medium.php b/system/src/Grav/Common/Page/Medium.php index 24ab42b06..85082009f 100644 --- a/system/src/Grav/Common/Page/Medium.php +++ b/system/src/Grav/Common/Page/Medium.php @@ -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;