Changeset 2318
- Timestamp:
- 05/14/08 00:43:20 (6 months ago)
- Files:
-
- branches/release-38/lib/MT/App/Search.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-38/lib/MT/App/Search.pm
r2267 r2318 828 828 my $msg = $messages && @$messages 829 829 ? join '; ', @$messages 830 : $app->translate('Th rottled');830 : $app->translate('The search you conducted has timed out. Please simplify your query and try again.'); 831 831 return $app->error($msg); 832 832 } … … 865 865 unless ( $^O eq 'Win32' ) { 866 866 # Use SIGALRM to stop processing in 5 seconds for each request 867 $SIG{ALRM} = sub { $app->errtrans('Throttled'); die; }; 867 $SIG{ALRM} = sub { 868 my $msg = $app->translate('The search you conducted has timed out. Please simplify your query and try again.'); 869 $app->error($msg); 870 die $msg; 871 }; 868 872 $app->{__have_throttle} = 1; 869 873 alarm($app->config->SearchThrottleSeconds);
