Changeset 9961


Ignore:
Timestamp:
2005-05-25T17:34:18+12:00 (19 years ago)
Author:
davidb
Message:

Minor refinement made to print statements (warnings) generated by BasPlug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/BasPlug.pm

    r9853 r9961  
    682682
    683683    if ($smart_block || $smart_block_BN) {
     684   
    684685    if (defined $self->{'file_blocks'}->{$filename} && $self->{'file_blocks'}->{$filename} == 1){
    685686        $self->{'num_blocked'} ++;
     
    955956
    956957    if ($self->{'input_encoding'} ne 'auto') {
    957         if ($self->{'extract_language'} && $self->{'verbosity'}) {
     958        if ($self->{'extract_language'} && ($self->{'verbosity'}>2)) {
    958959        gsprintf($outhandle,
    959960             "BasPlug: {BasPlug.could_not_extract_language}\n",
     
    963964
    964965    } else {
    965         if ($self->{'verbosity'}) {
     966        if ($self->{'verbosity'}>2) {
    966967        gsprintf($outhandle,
    967968             "BasPlug: {BasPlug.could_not_extract_language}\n",
     
    975976    my ($language, $encoding) = $results->[0] =~ /^([^-]*)(?:-(.*))?$/;
    976977    if (!defined $language) {
    977     if ($self->{'verbosity'}) {
     978    if ($self->{'verbosity'}>2) {
    978979        gsprintf($outhandle,
    979980             "BasPlug: {BasPlug.could_not_extract_language}\n",
     
    983984    }
    984985    if (!defined $encoding) {
    985     if ($self->{'verbosity'}) {
     986    if ($self->{'verbosity'}>2) {
    986987        gsprintf($outhandle,
    987988             "BasPlug: {BasPlug.could_not_extract_encoding}\n",
Note: See TracChangeset for help on using the changeset viewer.