From 132ac624a2782187ec99fb9829fb8a2feb4a8ecf Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 25 Jan 2015 11:23:04 +0100 Subject: [PATCH] Attachment_thumbnailAction is a ManagedAction (doPreparation) --- actions/attachment_thumbnail.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/actions/attachment_thumbnail.php b/actions/attachment_thumbnail.php index 484e5f00f2..c85029dcf6 100644 --- a/actions/attachment_thumbnail.php +++ b/actions/attachment_thumbnail.php @@ -44,18 +44,16 @@ class Attachment_thumbnailAction extends AttachmentAction protected $thumb_h = null; // max height protected $thumb_c = null; // crop? - protected function prepare(array $args=array()) + protected function doPreparation() { - parent::prepare($args); + parent::doPreparation(); $this->thumb_w = $this->int('w'); $this->thumb_h = $this->int('h'); $this->thumb_c = $this->boolean('c'); - - return true; } - function showPage() + public function showPage() { // Returns a File_thumbnail object or throws exception if not available try { -- 2.39.5