Changeset 36375 for main/trunk


Ignore:
Timestamp:
2022-08-18T06:55:49+12:00 (21 months ago)
Author:
kjdon
Message:

handle the case where importOption and buildOption names start with - (as this is how they are added for plugin options). I spent ages wondering why my option wasnt working... it had a -

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/collConfigxml.pm

    r29461 r36375  
    269269    elsif ($element =~ /$topleveloptionexp/) {
    270270    if (defined $name) {
     271        $name =~ s/^-//; # remove initial - if there was one
    271272        if (!defined $value) {
    272273        # flag option, set to true
Note: See TracChangeset for help on using the changeset viewer.