Another checkpoint.

This commit is contained in:
Brian Medley 2009-02-26 00:02:07 +00:00
parent 2bbd1c8610
commit 3e5c9d04ae
4 changed files with 184 additions and 8 deletions

View file

@ -249,9 +249,6 @@ sub getEditFormUploadControl {
sub getFileUrl {
my $self = shift;
#return $self->get("url");
if (-f $self->getStorageLocation->getPath('crop-' . $self->get("filename"))) {
return $self->getStorageLocation->getUrl('crop-' . $self->get("filename"));
}
return $self->getStorageLocation->getUrl($self->get("filename"));
}
@ -561,6 +558,7 @@ sub www_edit {
#-------------------------------------------------------------------
sub www_view {
my $self = shift;
return $self->session->privilege->noAccess() unless $self->canView;