From 6ca267b606bcbea5a9fca2e7c90122d2a5dbb89c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 12 Feb 2008 19:19:39 +0000 Subject: [PATCH] #220893 by AjK: node actions were improperly saving a node type object, instead of a name to the database --- modules/node/node.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/node/node.module b/modules/node/node.module index 77c2c875e104..b6fa6d4a47bb 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2618,7 +2618,7 @@ function node_make_unsticky_action(&$node, $context = array()) { */ function node_promote_action(&$node, $context = array()) { $node->promote = 1; - watchdog('action', 'Promoted @type %title to front page.', array('@type' => node_get_types('type', $node), '%title' => $node->title)); + watchdog('action', 'Promoted @type %title to front page.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } /** @@ -2627,7 +2627,7 @@ function node_promote_action(&$node, $context = array()) { */ function node_unpromote_action(&$node, $context = array()) { $node->promote = 0; - watchdog('action', 'Removed @type %title from front page.', array('@type' => node_get_types('type', $node), '%title' => $node->title)); + watchdog('action', 'Removed @type %title from front page.', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } /** @@ -2636,7 +2636,7 @@ function node_unpromote_action(&$node, $context = array()) { */ function node_save_action($node) { node_save($node); - watchdog('action', 'Saved @type %title', array('@type' => node_get_types('type', $node), '%title' => $node->title)); + watchdog('action', 'Saved @type %title', array('@type' => node_get_types('name', $node), '%title' => $node->title)); } /**