Show
Ignore:
Timestamp:
10/20/08 00:03:15 (3 years ago)
Author:
dom
Message:

write_node: return the version of the node that was just committed, if successful (fixes #42)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/lib/Wiki/Toolkit.pm

    r465 r466  
    793793$wiki->toggle_node_moderation to change the node moderation flag. 
    794794 
    795 Returns 1 on success, 0 on conflict, croaks on error. 
     795Returns the version of the updated node on success, 0 on conflict, croaks on 
     796error. 
    796797 
    797798B<Note> on the metadata hashref: Any data in here that you wish to 
     
    853854        $search->index_node($node, $store->charset_encode($content) ); 
    854855    } 
    855     return 1; 
     856    return $ret; 
    856857} 
    857858