*/
function show()
{
- $att = File::getAttachments($this->notice->id);
+ $att = $this->notice->attachments();
if (empty($att)) return 0;
$this->showListStart();
{
parent::__construct($out);
$this->attachment = $attachment;
- $this->oembed = File_oembed::staticGet('file_id', $this->attachment->id);
+ $this->oembed = File_oembed::getKV('file_id', $this->attachment->id);
}
function title() {
*/
function getThumbInfo()
{
- $thumbnail = File_thumbnail::staticGet('file_id', $this->attachment->id);
+ $thumbnail = File_thumbnail::getKV('file_id', $this->attachment->id);
if ($thumbnail) {
$maxWidth = common_config('attachments', 'thumb_width');
$maxHeight = common_config('attachments', 'thumb_height');