﻿Index: watchbug_wd/watchbug_wd.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/watchbug/watchbug_wd/watchbug_wd.module,v
retrieving revision 1.2
diff -u -p -r1.2 watchbug_wd.module
--- watchbug_wd/watchbug_wd.module	28 Apr 2009 00:33:46 -0000	1.2
+++ watchbug_wd/watchbug_wd.module	28 Apr 2009 06:36:57 -0000
@@ -32,8 +32,7 @@ function watchbug_wd_watchbug($op, &$val
     if ($value[$marker] !== TRUE) {
       $indicator = current((array)$set['watchdog_indicator']['types']);
       $severity = (in_array(WATCHDOG_DEBUG, $set['watchdog_indicator']['severity']) || !count($set['watchdog_indicator']['severity']))?WATCHDOG_DEBUG:current($set['watchdog_indicator']['severity']);
-      global $base_url;
-      $link = $base_url ."/admin/watchbug";
+      $link = l(t('view'), 'admin/watchbug';
       //run watchdog processing, might save via dblog, when dblog.module is active
       if ($set['watchdog_processing']) {
         watchdog($indicator, NULL, $value, $severity, $link);
@@ -320,4 +319,4 @@ function _watchbug_wd_get_var($log) {
     $key = (is_array($log['message'])) ? NULL : $log['message'];
   }
   return array(0 => $var, 1 => $key);
-}
\ No newline at end of file
+}
