]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Attachment_thumbnailAction is a ManagedAction (doPreparation)
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 25 Jan 2015 10:23:04 +0000 (11:23 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 25 Jan 2015 10:23:04 +0000 (11:23 +0100)
actions/attachment_thumbnail.php

index 484e5f00f273853e393da06ae6390f152c5ae80f..c85029dcf609e871a57b4c5d72bfcc929b4e4284 100644 (file)
@@ -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 {