diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/search/search.pages.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/search/search.pages.inc b/modules/search/search.pages.inc index 9fce2c591..575b62ede 100644 --- a/modules/search/search.pages.inc +++ b/modules/search/search.pages.inc @@ -25,10 +25,11 @@ function search_view($type = 'node') { // Only perform search if there is non-whitespace search term: $results = ''; if (trim($keys)) { - // Log the search keys: - watchdog('search', '%keys (@type).', array('%keys' => $keys, '@type' => module_invoke($type, 'search', 'name')), WATCHDOG_NOTICE, l(t('results'), 'search/' . $type . '/' . $keys)); + // Log the search keys. + $info = search_get_info(); + watchdog('search', 'Searched %type for %keys.', array('%keys' => $keys, '%type' => $info[$type]['title']), WATCHDOG_NOTICE, l(t('results'), 'search/' . $type . '/' . $keys)); - // Collect the search results: + // Collect the search results. $results = search_data($keys, $type); // Construct the search form. |