Changeset 357 for mt-cats2tags/trunk

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-cats2tags/trunk/mt-cats2tags.cgi

    r221 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; 
     
    4747    next unless $cats && @$cats; 
    4848    my @tags = map { $_->label } @$cats; 
    49     $e->set_tags(@tags); 
     49    $e->add_tags(@tags); 
    5050    $e->save_tags; 
    5151    print $e->id . ": " . join(', ', @tags) . "\n";