From c8a813f82ebdc9b77eedaa6abf9335aa96149752 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 11 Dec 2010 02:09:00 +0000 Subject: - Patch #992564 by wojtha: t() or format_plural() inside watchdog() function call in tracker and action module. --- includes/actions.inc | 2 +- modules/tracker/tracker.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/actions.inc b/includes/actions.inc index fa1f7d386..0daf8e86d 100644 --- a/includes/actions.inc +++ b/includes/actions.inc @@ -312,7 +312,7 @@ function actions_synchronize($delete_orphans = FALSE) { $link = l(t('Remove orphaned actions'), 'admin/config/system/actions/orphan'); $count = count($actions_in_db); $orphans = implode(', ', $orphaned); - watchdog('actions', format_plural($count, 'One orphaned action (%orphans) exists in the actions table. !link', '@count orphaned actions (%orphans) exist in the actions table. !link'), array('@count' => $count, '%orphans' => $orphans, '!link' => $link), WATCHDOG_WARNING); + watchdog('actions', '@count orphaned actions (%orphans) exist in the actions table. !link', array('@count' => $count, '%orphans' => $orphans, '!link' => $link), WATCHDOG_WARNING); } } } diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 4a2df61ab..f75354ebb 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -139,7 +139,7 @@ function tracker_cron() { // Prepare a starting point for the next run. variable_set('tracker_index_nid', $last_nid - 1); - watchdog('tracker', t('Indexed %count content items for tracking.', array('%count' => $count))); + watchdog('tracker', 'Indexed %count content items for tracking.', array('%count' => $count)); } else { // If all nodes have been indexed, set to zero to skip future cron runs. -- cgit v1.2.3