]> mj.ucw.cz Git - gallery.git/commitdiff
Old gallery: Follow changes in UCW::CGI
authorMartin Mares <mj@ucw.cz>
Wed, 26 Dec 2012 19:05:58 +0000 (20:05 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 8 Feb 2015 20:14:09 +0000 (21:14 +0100)
gal/Gallery/Web.pm

index 03b8d7ac6969a1fab32d36ae196687c0c83a163d..1a1bca266c5f8c312240089fbca9aee91b05dcfd 100644 (file)
@@ -5,6 +5,7 @@ package Gallery::Web;
 import Gallery qw(%CF);
 
 use UCW::CGI;
+use UCW::CGI::ErrorHandler;
 
 my $show_img;
 my $send_archive;
@@ -76,7 +77,7 @@ $CF{"HeadExtras"}
 </head><body>
 $CF{"TopExtras"}
 EOF
-       $UCW::CGI::error_hook = \&error;
+       $UCW::CGI::ErrorHandler::error_hook = \&error;
        load_notes();
        if ($show_img ne "" && $show_img > 0 && $show_img <= $#images) {
                show_links(($show_img > 1 ? ("?i=".($show_img-1)) : ""),