From: Manni H. <man...@us...> - 2005-03-16 20:52:54
|
Update of /cvsroot/popfile/engine/UI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22378/UI Modified Files: HTML.pm Log Message: Avoid another warning message by checking whether status and error messages are defined separately. Log status/error message at level 2 instead of 3. Index: HTML.pm =================================================================== RCS file: /cvsroot/popfile/engine/UI/HTML.pm,v retrieving revision 1.346 retrieving revision 1.347 diff -C2 -d -r1.346 -r1.347 *** HTML.pm 25 Feb 2005 21:53:52 -0000 1.346 --- HTML.pm 16 Mar 2005 20:52:31 -0000 1.347 *************** *** 1171,1177 **** # Tell the user anything the dynamic UI was interested in sharing ! $self->log_( 3, "dynamic config UI $name had status/error $status_message/$error_message") if (defined $status_message || defined $error_message); ! $self->status_message__($templ,$status_message) if ( defined( $status_message )); ! $self->error_message__($templ, $error_message) if ( defined( $error_message )); } --- 1171,1182 ---- # Tell the user anything the dynamic UI was interested in sharing ! if ( defined( $status_message )) { ! $self->status_message__($templ,$status_message); ! $self->log_( 2, "dynamic config UI $name had status $status_message"); ! } ! if ( defined( $error_message )) { ! $self->error_message__($templ, $error_message); ! $self->log_( 2, "dynamic config UI $name had error $error_message"); ! } } *************** *** 2531,2540 **** if ( defined( $self->{form_}{gopage} ) ) { ! my $destination = ( $self->{form_}{jumptopage} - 1 ) * $self->user_config_( $self->{sessions__}{$session}{user}, 'page_size' ); my $maximum = $self->history_()->get_query_size( $self->{q__} ); ! if ( $destination <= $maximum && $destination > 0 ) { ! return $self->http_redirect_( $client, "/history?start_message=$destination&" . $self->print_form_fields_(1,0,('filter','search','sort','session','negate') ), $session ); } --- 2536,2545 ---- if ( defined( $self->{form_}{gopage} ) ) { ! my $destination = ( $self->{form_}{jumptopage} - 1 ) * $self->user_config_( $self->{sessions__}{$session}{user}, 'page_size' ); my $maximum = $self->history_()->get_query_size( $self->{q__} ); ! if ( $destination <= $maximum && $destination > 0 ) { ! return $self->http_redirect_( $client, "/history?start_message=$destination&" . $self->print_form_fields_(1,0,('filter','search','sort','session','negate') ), $session ); } |