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/Store/Database.pm

    r457 r466  
    451451you (or your chosen subclass). This method shouldn't really be used 
    452452directly as it might overwrite someone else's changes. Croaks on error 
    453 but otherwise returns true. 
     453but otherwise returns the version number of the update just made. 
    454454 
    455455Supplying a ref to an array of nodes that this ones links to is 
     
    658658    } 
    659659 
    660     return 1; 
     660    return $version; 
    661661} 
    662662