Ignore:
Timestamp:
May 14, 2006, 4:54:22 PM (15 years ago)
Author:
Dominic Hargreaves
Message:

Use Wiki::Toolkit. Note that CGI::Wiki::Plugin::Diff hasn't been converted yet,
so tests will be broken for now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides.pm

    r784 r785  
    44use Carp "croak";
    55use CGI;
    6 use CGI::Wiki::Plugin::Diff;
    7 use CGI::Wiki::Plugin::Locator::Grid;
     6use Wiki::Toolkit::Plugin::Diff;
     7use Wiki::Toolkit::Plugin::Locator::Grid;
    88use OpenGuides::CGI;
    99use OpenGuides::Feed;
     
    5151    my $locator;
    5252    if ( $geo_handler == 1 ) {
    53         $locator = CGI::Wiki::Plugin::Locator::Grid->new(
     53        $locator = Wiki::Toolkit::Plugin::Locator::Grid->new(
    5454                                             x => "os_x",    y => "os_y" );
    5555    } elsif ( $geo_handler == 2 ) {
    56         $locator = CGI::Wiki::Plugin::Locator::Grid->new(
     56        $locator = Wiki::Toolkit::Plugin::Locator::Grid->new(
    5757                                             x => "osie_x",  y => "osie_y" );
    5858    } else {
    59         $locator = CGI::Wiki::Plugin::Locator::Grid->new(
     59        $locator = Wiki::Toolkit::Plugin::Locator::Grid->new(
    6060                                             x => "easting", y => "northing" );
    6161    }
    6262    $wiki->register_plugin( plugin => $locator );
    6363    $self->{locator} = $locator;
    64     my $differ = CGI::Wiki::Plugin::Diff->new;
     64    my $differ = Wiki::Toolkit::Plugin::Diff->new;
    6565    $wiki->register_plugin( plugin => $differ );
    6666    $self->{differ} = $differ;
     
    7070=item B<wiki>
    7171
    72 An accessor, returns the underlying L<CGI::Wiki> object.
     72An accessor, returns the underlying L<Wiki::Toolkit> object.
    7373
    7474=cut
     
    9292=item B<locator>
    9393
    94 An accessor, returns the underlying L<CGI::Wiki::Plugin::Locator::UK> object.
     94An accessor, returns the underlying L<Wiki::Toolkit::Plugin::Locator::UK> object.
    9595
    9696=cut
     
    103103=item B<differ>
    104104
    105 An accessor, returns the underlying L<CGI::Wiki::Plugin::Diff> object.
     105An accessor, returns the underlying L<Wiki::Toolkit::Plugin::Diff> object.
    106106
    107107=cut
     
    958958    $metadata{host} = $ENV{REMOTE_ADDR};
    959959
    960     # CGI::Wiki::Plugin::RSS::ModWiki wants "major_change" to be set.
     960    # Wiki::Toolkit::Plugin::RSS::ModWiki wants "major_change" to be set.
    961961    $metadata{major_change} = ( $metadata{edit_type} eq "Normal edit" )
    962962                            ? 1
     
    11361136=item * L<http://openguides.org/|The OpenGuides website>, with a list of all live OpenGuides installs.
    11371137
    1138 =item * L<CGI::Wiki>, the Wiki toolkit which does the heavy lifting for OpenGuides
     1138=item * L<Wiki::Toolkit>, the Wiki toolkit which does the heavy lifting for OpenGuides
    11391139
    11401140=back
Note: See TracChangeset for help on using the changeset viewer.