Ignore:
Timestamp:
Jun 10, 2004, 8:56:50 PM (18 years ago)
Author:
kake
Message:

Move locator registration to OpenGuides.pm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r368 r369  
    33
    44use CGI;
     5use CGI::Wiki::Plugin::Locator::UK;
    56use OpenGuides::Template;
    67use OpenGuides::Utils;
     
    4041    $self->{wiki} = $wiki;
    4142    $self->{config} = $args{config};
     43    my $locator = CGI::Wiki::Plugin::Locator::UK->new;
     44    $wiki->register_plugin( plugin => $locator );
    4245    return $self;
    4346}
     
    6366    my $self = shift;
    6467    return $self->{config};
     68}
     69
     70=item B<locator>
     71
     72An accessor, returns the underlying L<CGI::Wiki::Plugin::Locator::UK> object.
     73
     74=cut
     75
     76sub locator {
     77    my $self = shift;
     78    return $self->{locator};
    6579}
    6680
Note: See TracChangeset for help on using the changeset viewer.