Changeset 916 for trunk/cgi-bin/main.cgi
- Timestamp:
- 05/01/18 13:29:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/main.cgi
r913 r916 513 513 514 514 my $pinfo = getBlockData($ip_dbh, $webvar{parent}); 515 516 # retrieve any notices 517 blocknotices($webvar{parent}); 515 518 516 519 my @cities; … … 770 773 $page->param(dnslocal => 1) unless ($pinfo->{revpartial} || $pinfo->{revavail}); 771 774 775 # retrieve any notices 776 blocknotices($webvar{parent}); 777 772 778 # reserve for expansion 773 779 $page->param(reserve => $webvar{reserve}); … … 1763 1769 1764 1770 } # finalDelete 1771 1772 # Retrive and lightly preprocess any block notices. 1773 sub blocknotices { 1774 my $blockid = shift; 1775 # retrieve any notices 1776 my $nlist = getBlockNotices($ip_dbh, $blockid); 1777 my @notices; 1778 foreach (@$nlist) { 1779 push @notices, $_->{notice} if $_->{notice}; 1780 } 1781 my $blockmsg = join("<br>\n", @notices); 1782 $page->param(blockmsg => $blockmsg); 1783 }
Note:
See TracChangeset
for help on using the changeset viewer.