Changeset 13524


Ignore:
Timestamp:
2006-12-20T10:17:56+13:00 (15 years ago)
Author:
mdewsnip
Message:

Now just prints a warning if the text file contains no text, as suggested by Diego Spano on Dec 19 2006.

File:
1 edited

Legend:

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

    r13269 r13524  
    921921    &BasPlug::read_file($self, $fullpath, $encoding, $language, \$text);
    922922    if (!length ($text)) {
    923         my $plugin_name = ref ($self);
    924         print "PagedImgPlug: ERROR: $fullpath contains no text\n" if $self->{'verbosity'};
    925         return 0;
     923    # It's a bit unusual but not out of the question to have no text, so just give a warning
     924        print "PagedImgPlug: WARNING: $fullpath contains no text\n";
    926925    }
    927926
Note: See TracChangeset for help on using the changeset viewer.