Ignore:
Timestamp:
2007-07-25T13:37:52+12:00 (17 years ago)
Author:
oranfry
Message:

merged selected changes to the gsdl trunk since r14217 into the 2.74 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/branches/gsdl-2.74/perllib/plugin.pm

    r14112 r14270  
    4848
    4949    # find the plugin
    50     my $customplugname = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, "custom", $ENV{'GSDLCOLLECTION'},
     50    my $customplugname;
     51    if (defined($ENV{'GSDLCOLLECTION'}))
     52    {
     53    $customplugname = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, "custom", $ENV{'GSDLCOLLECTION'},
    5154                                             'perllib', 'plugins', "${pluginname}.pm");
     55    }
    5256    my $colplugname = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, 'perllib', 'plugins',
    5357                      "${pluginname}.pm");
    5458    my $mainplugname = &util::filename_cat($ENV{'GSDLHOME'}, 'perllib', 'plugins',
    5559                       "${pluginname}.pm");
    56     if (-e $customplugname) { require $customplugname; }
     60    if (defined($customplugname) && -e $customplugname) { require $customplugname; }
    5761    elsif (-e $colplugname) { require $colplugname; }
    5862    elsif (-e $mainplugname) { require $mainplugname; }
Note: See TracChangeset for help on using the changeset viewer.