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
2010-12-15 09:24:59 +08:00

23 lines
488 B
PHP

<?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);
}
}
}