Changeset 98


Ignore:
Timestamp:
May 2, 2003, 9:27:23 PM (19 years ago)
Author:
kake
Message:

Auto-created category/locale stub pages now added to Category Category or Category Locales as appropriate. Bumped version number since I made a release.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r97 r98  
     10.07   
     2        Auto-created category/locale stub pages now added to Category Category
     3          or Category Locales as appropriate.
     4
    150.06    2 May 2003
    26        Fixed supersearch.cgi so it works with MySQL as well as Postgres
  • trunk/lib/OpenGuides.pm

    r97 r98  
    44use vars qw( $VERSION );
    55
    6 $VERSION = '0.06';
     6$VERSION = '0.07';
    77
    88=head1 NAME
  • trunk/wiki.cgi

    r97 r98  
    55
    66use vars qw( $VERSION );
    7 $VERSION = '0.06';
     7$VERSION = '0.07';
    88
    99use lib "lib"; # for OpenGuides modules that are installed with this script
     
    210210    # and write it a stub node if it doesn't.
    211211    if ( $node =~ /^(Category|Locale) (.*)$/ ) {
     212        my $type = $1;
    212213        $tt_vars{is_indexable_node} = 1;
    213         $tt_vars{index_type} = lc($1);
     214        $tt_vars{index_type} = lc($type);
    214215        $tt_vars{index_value} = $2;
    215216
    216217        unless ( $wiki->node_exists($node) ) {
    217218            warn "Creating default node $node";
     219            my $category = $type eq "Category" ? "Category" : "Locales";
    218220            $wiki->write_node( $node,
    219221                               "\@INDEX_LINK [[$node]]",
    220222                               undef,
    221223                               { username => "Auto Create",
    222                                  comment  => "Auto created $tt_vars{index_type} stub page"
     224                                 comment  => "Auto created $tt_vars{index_type} stub page",
     225                                 category => $category
    223226                               }
    224227            );
Note: See TracChangeset for help on using the changeset viewer.