1
0
This repository has been archived on 2021-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
gallery3-contrib/3.0/modules/aws_s3/helpers/MY_item.php

23 lines
488 B
PHP
Raw Normal View History

2010-11-26 22:44:32 +00:00
<?php
class item extends item_Core {
static function make_album_cover($item, $sync = false) {
if (!$sync)
parent::make_album_cover($item);
$parent = $item->parent();
if ($parent->id > 1) {
aws_s3::upload_album_cover($parent);
}
}
static function remove_album_cover($album) {
parent::remove_album_cover($album);
if ($album->id > 1) {
aws_s3::remove_album_cover($album);
}
}
}