From 1d5a29a35721af9748d23d480bbce05d02d8d7da Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 2 Jan 2004 16:44:11 +0000 Subject: [PATCH] - Log the search terms in a new watchdog category. --- CHANGELOG | 8 ++++++++ modules/search.module | 3 +++ modules/search/search.module | 3 +++ 3 files changed, 14 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 5c9e9431d5b8..f8bc81c48374 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ Drupal x.x.x, xxxx-xx-xx - added support for the MetaWeblog API and MovableType extensions. - added a file API: enables better document management. +- improved the watchdog and search module to log search keys. - comment module: * made it possible to disable the "comment viewing controls". - performance: @@ -29,11 +30,18 @@ Drupal x.x.x, xxxx-xx-xx - documentation: * added PHPDoc/Doxygen comments. +Drupal 4.3.2, 2004-01-01 +------------------------ + +- fixed bugs: no critical bugs were identified. + + Drupal 4.3.1, 2003-12-01 ------------------------ - fixed bugs: no critical bugs were identified. + Drupal 4.3.0, 2003-11-01 ------------------------ diff --git a/modules/search.module b/modules/search.module index 02738fe5d54d..3a3b6695dd34 100644 --- a/modules/search.module +++ b/modules/search.module @@ -363,6 +363,9 @@ function search_view($keys) { $output .= "
". $help_link ."
"; } + // Log the search keys: + watchdog("search", "search: '$keys'", l("view results", "search", NULL, "keys=". urlencode($keys))); + // Collect the search results: $results = search_data($keys); diff --git a/modules/search/search.module b/modules/search/search.module index 02738fe5d54d..3a3b6695dd34 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -363,6 +363,9 @@ function search_view($keys) { $output .= "
". $help_link ."
"; } + // Log the search keys: + watchdog("search", "search: '$keys'", l("view results", "search", NULL, "keys=". urlencode($keys))); + // Collect the search results: $results = search_data($keys);