On line 428 of date_copy.module, there's a call to watchdog(). The format of this call follows the Drupal 6 API signature for this function, and needs to be updated to be compatible with 5.x.
Here's the current code (in 6.x format):
watchdog('date_copy', '!type: created %title.', array(
'!type' => t($target_type),
'%title' => $target_node->title),
WATCHDOG_NOTICE,
l(t('view'), 'node/'. $target_node->nid));
Here's the correct 5.x code:
watchdog('date_copy', t('!type: created %title.', array(
'!type' => $target_type,
'%title' => $target_node->title,
)),
WATCHDOG_NOTICE,
l(t('view'), 'node/'. $target_node->nid));
The main difference is the contents of the second argument. In 5.x, you have to pre-translate the string yourself. In 6.x, an argument was added to do translations for you.
There are 3 instances of this being called on lines 428, 685, 695
Comments
Comment #1
arlinsandbulte commented