Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

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

    r9853 r10218  
    8585
    8686sub new {
    87     my ($class) = @_;
    88     my $self = new BasPlug ($class, @_);
    89 
    90     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    91     my $option_list = $self->{'option_list'};
    92     push( @{$option_list}, $options );
     87    my ($class) = shift (@_);
     88    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     89    push(@$pluginlist, $class);
     90
     91    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     92    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     93
     94    my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
    9395
    9496    # $self->{'lang_abbr'} = load_language_table();
Note: See TracChangeset for help on using the changeset viewer.