Changeset 22632 for main


Ignore:
Timestamp:
2010-08-13T16:52:49+12:00 (14 years ago)
Author:
mdewsnip
Message:

Changed "use textcat" to a "require textcat", so it is only loaded if it is actually required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BasePlugin.pm

    r22427 r22632  
    3434use encodings;
    3535use unicode;
    36 use textcat;
    3736use doc;
    3837use ghtml;
     
    684683   
    685684    # get the language/encoding of the textstring using textcat
     685    require textcat;  # Only load the textcat module if it is required
    686686    $self->{'textcat'} = new textcat() unless defined($self->{'textcat'});
    687687    my $results = $self->{'textcat'}->classify_cached_filename(\$text);
Note: See TracChangeset for help on using the changeset viewer.