From f94b014ca73a4e77bc7f31b8cf3adabb9c23bf7a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 18 Sep 2010 01:39:33 +0000 Subject: [PATCH] - Patch #403034 by roderik, Damien Tournoud: node_assign_owner_action() logs an object type instead of the type name. --- modules/node/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/node/node.module b/modules/node/node.module index 956122de53a..4e94f5de97d 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -3582,7 +3582,7 @@ function node_save_action($node) { function node_assign_owner_action($node, $context) { $node->uid = $context['owner_uid']; $owner_name = db_query("SELECT name FROM {users} WHERE uid = :uid", array(':uid' => $context['owner_uid']))->fetchField(); - watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_type_get_type($node), '%title' => $node->title, '%name' => $owner_name)); + watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_type_get_name($node), '%title' => $node->title, '%name' => $owner_name)); } /**