Ignore:
Timestamp:
09/27/11 13:41:43 (13 years ago)
Author:
Kris Deugau
Message:

/branches/htmlform

Clean up final reference to printError(), and remove all references
(commented or otherwise) to CommonWeb.pm. Remove the file itself. See #15.
Tweak block-update template for error handling. See #3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/htmlform/cgi-bin/main.cgi

    r504 r505  
    1515use HTML::Template;
    1616use DBI;
    17 use CommonWeb qw(:ALL);
    1817use CustIDCK;
    1918use POSIX qw(ceil);
     
    10841083  if ($@) {
    10851084    my $msg = $@;
    1086     carp "Transaction aborted because $msg";
    10871085    eval { $ip_dbh->rollback; };
    10881086    syslog "err", "$authuser could not update block/IP '$webvar{block}': '$msg'";
    1089     printError("Could not update block/IP $webvar{block}: $msg");
     1087    $page->param(err => "Could not update block/IP $webvar{block}: $msg");
    10901088    return;
    10911089  }
Note: See TracChangeset for help on using the changeset viewer.