--- loncom/interface/loncommon.pm 2018/09/18 02:18:43 1.1321 +++ loncom/interface/loncommon.pm 2018/11/18 22:50:52 1.1324 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1321 2018/09/18 02:18:43 raeburn Exp $ +# $Id: loncommon.pm,v 1.1324 2018/11/18 22:50:52 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -16420,6 +16420,24 @@ sub compare_arrays { return @difference; } +sub lon_status_items { + my %defaults = ( + E => 100, + W => 4, + N => 1, + U => 5, + threshold => 200, + sysmail => 2500, + ); + my %names = ( + E => 'Errors', + W => 'Warnings', + N => 'Notices', + U => 'Unsent', + ); + return (\%defaults,\%names); +} + # -------------------------------------------------------- Initialize user login sub init_user_environment { my ($r, $username, $domain, $authhost, $form, $args) = @_; @@ -17783,6 +17801,9 @@ sub create_captcha { last; } } + if ($output eq '') { + &Apache::lonnet::logthis("Failed to create Captcha code after $tries attempts."); + } return $output; }