Index: tracker.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/tracker/tracker.module,v
retrieving revision 1.143
diff -u -r1.143 tracker.module
--- tracker.module	10 Jan 2007 15:17:51 -0000	1.143
+++ tracker.module	26 Oct 2007 17:21:35 -0000
@@ -34,7 +34,7 @@
     if ($user->uid) {
       $items[] = array('path' => 'tracker/all', 'title' => t('All recent posts'),
         'type' => MENU_DEFAULT_LOCAL_TASK);
-      $items[] = array('path' => 'tracker/'. $user->uid, 'title' => t('My recent posts'),
+      $items[] = array('path' => 'tracker/user', 'title' => t('My recent posts'),
         'type' => MENU_LOCAL_TASK);
     }
   }
@@ -72,9 +72,19 @@
 /**
  * Menu callback. Prints a listing of active nodes on the site.
  */
-function tracker_page($uid = 0) {
+function tracker_page($target = 0) {
   // Add CSS
   drupal_add_css(drupal_get_path('module', 'tracker') .'/tracker.css', 'module', 'all', FALSE);
+  if (is_numeric($target)) {
+    $uid = $target;
+  }
+  else if ($target == 'user') {
+    global $user;
+    $uid = $user->uid;
+  }
+  else {
+    $uid = 0;
+  }
 
   // TODO: These queries are very expensive, see http://drupal.org/node/105639
   if ($uid) {
