cvs diff: Diffing .
cvs diff: Diffing database
Index: database/updates.inc
===================================================================
RCS file: /cvs/drupal/drupal/database/updates.inc,v
retrieving revision 1.120
diff -u -F^f -r1.120 updates.inc
--- database/updates.inc	22 Jul 2005 19:06:19 -0000	1.120
+++ database/updates.inc	28 Jul 2005 08:39:46 -0000
@@ -117,7 +117,8 @@
   "2005-05-10" => "update_138",
   "2005-05-11" => "update_139",
   "2005-05-12" => "update_140",
-  "2005-05-22" => "update_141"
+  "2005-05-22" => "update_141",
+  "2005-06-28" => "update_142"
 );

 function update_32() {
@@ -2511,6 +2512,12 @@ function update_141() {
   return $ret;
 }

+function update_142() {
+  $ret = array();
+  $ret[] = update_sql("ALTER TABLE {watchdog} ADD COLUMN referer varchar (128)  NOT NULL");
+  return $ret;
+}
+
 function update_sql($sql) {
   $edit = $_POST["edit"];
   $result = db_query($sql);
cvs diff: Diffing includes
Index: includes/bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.57
diff -u -F^f -r1.57 bootstrap.inc
--- includes/bootstrap.inc	27 Jul 2005 01:58:43 -0000	1.57
+++ includes/bootstrap.inc	28 Jul 2005 08:39:46 -0000
@@ -739,7 +739,7 @@ function request_uri() {
  */
 function watchdog($type, $message, $severity = WATCHDOG_NOTICE, $link = NULL) {
   global $user;
-  db_query("INSERT INTO {watchdog} (uid, type, message, severity, link, location, hostname, timestamp) VALUES (%d, '%s', '%s', %d, '%s', '%s', '%s', %d)", $user->uid, $type, $message, $severity, $link, request_uri(), $_SERVER['REMOTE_ADDR'], time());
+  db_query("INSERT INTO {watchdog} (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (%d, '%s', '%s', %d, '%s', '%s', '%s', '%s', %d)", $user->uid, $type, $message, $severity, $link, request_uri(), referer_uri(), $_SERVER['REMOTE_ADDR'], time());
 }

 /**
cvs diff: Diffing misc
cvs diff: Diffing modules
Index: modules/watchdog.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/watchdog.module,v
retrieving revision 1.122
diff -u -F^f -r1.122 watchdog.module
--- modules/watchdog.module	24 Apr 2005 16:34:36 -0000	1.122
+++ modules/watchdog.module	28 Jul 2005 08:39:46 -0000
@@ -141,6 +141,7 @@ function watchdog_event($id) {
     $output .= ' <tr><th>'. t('Date') .'</th><td>'. format_date($watchdog->timestamp, 'large') .'</td></tr>';
     $output .= ' <tr><th>'. t('User') .'</th><td>'. format_name($watchdog) .'</td></tr>';
     $output .= ' <tr><th>'. t('Location') ."</th><td>". l($watchdog->location, $watchdog->location) ."</td></tr>";
+    $output .= ' <tr><th>'. t('Referrer') ."</th><td>". l($watchdog->referer, $watchdog->referer) ."</td></tr>";
     $output .= ' <tr><th>'. t('Message') ."</th><td>$watchdog->message</td></tr>";
     $output .= ' <tr><th>'. t('Severity') .'</th><td>'. $severity[$watchdog->severity] .'</td></tr>';
     $output .= ' <tr><th>'. t('Hostname') ."</th><td>$watchdog->hostname</td></tr>";
@@ -160,4 +161,4 @@ function _watchdog_get_message_types() {
   return $types;
 }

-?>
+?>
\ No newline at end of file