$r->get_user;
if (!$r->user and $self->path =~ /upload/) { $r->template("login"); }
# Don't let 'em go until they've fixed it
- warn "Quarantine is : ".$r->session->{quarantined};
- if ($r->session->{quarantined} and $self->path !~ /js$/) {
+ if ($r->session and $r->session->{quarantined} and $self->path !~ /js$/) {
$r->table("photo"); $r->action("quarantine");
$r->model_class("Memories::Photo");
}
package Memories::Photo;
use File::Basename;
use File::Copy;
-use Archive::Any;
use strict;
use Carp qw(cluck confess);
use base qw(Memories::DBI Maypole::Model::CDBI::Plain);