remove undo helper, will add it back when we have proper revisionId

This commit is contained in:
Doug Bell 2011-03-28 13:49:57 -05:00
parent e8d600aa29
commit 68cc2297f1

View file

@ -297,7 +297,6 @@ override setFile => sub {
# These are asset helpers now, not functions
# $ac->addSubmenuItem($self->getUrl('func=crop'), $i18n->get("crop image"));
# $ac->addSubmenuItem($self->getUrl('func=annotate'), $i18n->get("annotate image"));
# $ac->addSubmenuItem($self->getUrl('func=undo'), $i18n->get("undo image"));
# }
# my $tabform = $self->getEditForm;
# return $self->getAdminConsole->render($tabform->toHtml,$i18n->get("edit image"));
@ -305,25 +304,6 @@ override setFile => sub {
#-------------------------------------------------------------------
=head2 www_undo
Rolls back the last revision of this asset, undoing any work that may
have been done to it.
=cut
sub www_undo {
my $self = shift;
my $previous = (@{$self->getRevisions()})[1];
if ($previous) {
$self = $self->purgeRevision();
$self->generateThumbnail;
}
return $self->www_edit();
}
#-------------------------------------------------------------------
#
# All of the images will have to change to support annotate.
# The revision system doesn't support the blobs, it seems.