]> BookStack Code Mirror - bookstack/blobdiff - app/Image.php
Added custom user avatars
[bookstack] / app / Image.php
index 66d54ba302befb6c9df5f232be5a262dcce4a08f..651c618e6203b5dfd3cfd9b63286824b178de580 100644 (file)
@@ -3,9 +3,10 @@
 namespace BookStack;
 
 
+use Illuminate\Database\Eloquent\Model;
 use Images;
 
-class Image
+class Image extends Model
 {
     use Ownable;
 
@@ -16,9 +17,10 @@ class Image
      * @param  int       $width
      * @param  int       $height
      * @param bool|false $hardCrop
+     * @return string
      */
     public function getThumb($width, $height, $hardCrop = false)
     {
-        Images::getThumbnail($this, $width, $height, $hardCrop);
+        return Images::getThumbnail($this, $width, $height, $hardCrop);
     }
 }