From 718f65eee1c797ea90a315b5f03fae75c80a5112 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 8 Oct 2007 19:14:28 +0000 Subject: Remove remaining calls to idiot/eidiot. Should fix 1479 --- httemplate/search/cust_main.cgi | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'httemplate/search/cust_main.cgi') diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi index 56bb9ca41..b0f657fbb 100755 --- a/httemplate/search/cust_main.cgi +++ b/httemplate/search/cust_main.cgi @@ -87,10 +87,10 @@ % if ( $cgi->param('otaker_on') ) { % die "access denied" % unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); -% $cgi->param('otaker') =~ /^(\w{1,32})$/ or eidiot "Illegal otaker\n"; +% $cgi->param('otaker') =~ /^(\w{1,32})$/ or errorpage("Illegal otaker"); % $search{otaker} = $1; % } elsif ( $cgi->param('agentnum_on') ) { -% $cgi->param('agentnum') =~ /^(\d+)$/ or eidiot "Illegal agentnum\n"; +% $cgi->param('agentnum') =~ /^(\d+)$/ or errorpage("Illegal agentnum"); % $search{agentnum} = $1; %# } else { %# die "unknown query..."; @@ -232,7 +232,7 @@ % -% eidiot "No matching customers found!\n"; +% errorpage("No matching customers found!"); %} else { % @@ -268,7 +268,7 @@ % % if ( $cgi->param('referral_custnum') ) { % $cgi->param('referral_custnum') =~ /^(\d+)$/ -% or eidiot "Illegal referral_custnum\n"; +% or errorpage("Illegal referral_custnum"); % my $referral_custnum = $1; % my $cust_main = qsearchs('cust_main', { custnum => $referral_custnum } ); % print '
'. @@ -288,7 +288,7 @@ % print '