]> mj.ucw.cz Git - gallery.git/commitdiff
Gallery2: Clean up remnants of archiving
authorMartin Mares <mj@ucw.cz>
Wed, 26 Dec 2012 13:46:20 +0000 (14:46 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Feb 2015 20:14:09 +0000 (21:14 +0100)
gal2/UCW/Gallery/Web.pm

index 2d6de1d42dafd4b2b804d51d411d0f235f5e7364..d2a718ad372d277a644b8b3cc3fced5fe9aa6ba8 100644 (file)
@@ -8,26 +8,14 @@ use UCW::CGI;
 use File::Spec;
 
 my $show_img;
-my $send_archive;
 
 my %args = (
        'i'     => { 'var' => \$show_img, 'check' => '\d+' },
-       'a'     => { 'var' => \$send_archive }
 );
 
 our $meta;
 our $num_photos;
 
-sub new() {
-       if ($send_archive && $CF{'AllowArchives'}) {
-               # FIXME?
-               require UCW::Gallery::Archive;
-               return new UCW::Gallery::Archive($send_archive);
-       } else {
-               return bless {};
-       }
-}
-
 sub error($) {
        print "<p style='color:red'>Bad luck, the script is broken. Sorry.\n<p>$_[0]\n";
        print "</body></html>\n";