Changeset 357 for mt-keywords2tags

Show
Ignore:
Timestamp:
03/07/07 19:17:03 (21 months ago)
Author:
ogawa
Message:

Uses add_tags instead of set_tags.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mt-keywords2tags/trunk/mt-keywords2tags.cgi

    r214 r357  
    77# personal use. If you distribute it, please keep this notice intact. 
    88# 
    9 # Copyright (c) 2006 Hirotaka Ogawa 
     9# Copyright (c) 2006,2007 Hirotaka Ogawa 
    1010# 
    1111use strict; 
     
    4646    my @tags = split_tags($e->keywords, 1); 
    4747    next unless scalar @tags; 
    48     $e->set_tags(@tags); 
     48    $e->add_tags(@tags); 
    4949    $e->save_tags; 
    5050    print $e->id . ": " . join(', ', @tags) . "\n";