Commit 135f366c authored by Gábor Hojtsy's avatar Gábor Hojtsy

#193064 patch by myself: take node by reference, when revisionn is saved, so...

#193064 patch by myself: take node by reference, when revisionn is saved, so we get the vid property updated on PHP 4 too
parent 0afbb703
......@@ -837,9 +837,12 @@ function node_save(&$node) {
/**
* Helper function to save a revision with current user responsible for revision.
* Helper function to save a revision with the uid of the current user.
*
* Node is taken by reference, becuse drupal_write_record() updates the
* $node with the revision id, and we need to pass that back to the caller.
*/
function _node_save_revision($node, $uid, $update = NULL) {
function _node_save_revision(&$node, $uid, $update = NULL) {
$temp_uid = $node->uid;
$node->uid = $uid;
if (isset($update)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment