Ignore:
Timestamp:
2000-07-13T10:21:53+12:00 (24 years ago)
Author:
sjboddie
Message:

merged changes to trunk into New_Config_Format branch

File:
1 edited

Legend:

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

    r835 r1279  
    2929
    3030sub load_plugins {
    31     my ($plugin_list) = @_;
     31    my ($plugin_list, $verbosity) = @_;
    3232    my @plugin_objects = ();
     33
     34    $verbosity = 2 unless defined $verbosity;
    3335
    3436    foreach $pluginoptions (@$plugin_list) {
     
    4951    map { $_ = "\"$_\""; } @$pluginoptions;
    5052    my $options = join (",", @$pluginoptions);
     53    $options =~ s/\$/\\\$/g;
    5154    eval ("\$plugobj = new \$pluginname($options)");
    5255    die "$@" if $@;
    5356   
     57    # initialize plugin
     58    $plugobj->init($verbosity);
     59
    5460    # add this object to the list
    5561    push (@plugin_objects, $plugobj);
Note: See TracChangeset for help on using the changeset viewer.