summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-08 17:06:09 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-08 17:06:09 +0000
commit2bced6879f9d3a5430311be2706b0517cbc02fb2 (patch)
treee27c1554208faced1126dfa94668ba099c8ae5ad /modules
parentefcbfc3e9e9145d55dbd98400c3910c4f9b37bb1 (diff)
downloadbrdo-2bced6879f9d3a5430311be2706b0517cbc02fb2.tar.gz
brdo-2bced6879f9d3a5430311be2706b0517cbc02fb2.tar.bz2
- Patch #674988 by jhodgdon: fixed search module watchdog entry.
Diffstat (limited to 'modules')
-rw-r--r--modules/search/search.pages.inc7
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.