- Patch #403034 by roderik, Damien Tournoud: node_assign_owner_action() logs an object type instead of the type name.

merge-requests/26/head
Dries Buytaert 2010-09-18 01:39:33 +00:00
parent 80d21ffbb2
commit f94b014ca7
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
/**