<?php
namespace wcf\data\box\content;
-use wcf\data\DatabaseObject;
use wcf\data\media\ViewableMedia;
+use wcf\data\DatabaseObject;
use wcf\system\WCF;
/**
<?php
namespace wcf\data\box\content;
-use wcf\data\DatabaseObjectList;
use wcf\data\media\ViewableMediaList;
+use wcf\data\DatabaseObjectList;
/**
* Represents a list of box content.
* Deletes avatar files.
*/
public function deleteFiles() {
- foreach (UserAvatar::$avatarThumbnailSizes as $size) { // delete wcf2.1 files
+ // delete wcf2.1 files
+ foreach (UserAvatar::$avatarThumbnailSizes as $size) {
if ($this->width < $size && $this->height < $size) break;
@unlink($this->getLocation($size));