Update media implementation
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / data / box / Box.class.php
index ba8d6d05f877ebf52c4b1f1ed250066c15b0cb75..ce4c1e508947ff900817295f2f135498f7cf5010 100644 (file)
@@ -341,6 +341,8 @@ class Box extends DatabaseObject {
                        $this->image = ViewableMedia::getMedia($boxContent[0]['imageID']);
                }
                
+               $this->image->setLinkParameters(['boxID' => $this->boxID]);
+               
                return $this->image;
        }