=== modified file 'includes/common.inc'
--- includes/common.inc	2009-02-13 04:43:00 +0000
+++ includes/common.inc	2009-02-13 15:43:04 +0000
@@ -3578,9 +3578,6 @@ function drupal_common_theme() {
     'item_list' => array(
       'arguments' => array('items' => array(), 'title' => NULL, 'type' => 'ul', 'attributes' => NULL),
     ),
-    'list' => array(
-      'arguments' => array('elements' => NULL),
-    ),
     'more_help_link' => array(
       'arguments' => array('url' => NULL),
     ),

=== modified file 'includes/theme.inc'
--- includes/theme.inc	2009-02-05 03:42:56 +0000
+++ includes/theme.inc	2009-02-13 16:08:17 +0000
@@ -625,6 +625,16 @@ function theme() {
   if (isset($info['function'])) {
     // The theme call is a function.
     if (drupal_function_exists($info['function'])) {
+      // If we are calling a theme function which does not expect a renderable
+      // array with a renderable array then we take the arguments from the
+      // properties of the renderable array or the defaults.
+      if (isset($args[0]) && is_array($args[0]) && isset($args[0]['#theme']) && $info['arguments'] != array('element' => NULL)) {
+        $new_args = array();
+        foreach ($info['arguments'] as $name => $default) {
+          $new_args[] = isset($args[0]["#$name"]) ? $args[0]["#$name"] : $default;
+        }
+        $args = $new_args;
+      }
       $output = call_user_func_array($info['function'], $args);
     }
   }
@@ -1571,25 +1581,6 @@ function theme_item_list($items = array(
 }
 
 /**
- * Return a themed list of items from a drupal_render() style array.
- *
- * @param $elements
- *   An array consisting of the following keys:
- *   - #items: an array of items as expected by theme('item_list').
- *   - #title: a title which prints above the list.
- *   - #list_type: the type of list to return. Defaults to "ul".
- *   - #attributes: an array of attributes as expected by theme('item_list').
- * @return
- *   A string containing the list output.
- */
-function theme_list($elements) {
-  // Populate any missing array elements with their defaults.
-  $elements += element_info('list');
-
-  return theme('item_list', $elements['#items'], $elements['#title'], $elements['#list_type'], $elements['#attributes']);
-}
-
-/**
  * Returns code that emits the 'more help'-link.
  */
 function theme_more_help_link($url) {
@@ -1975,17 +1966,17 @@ function template_preprocess_node(&$vari
   $variables['node_url']  = url('node/' . $node->nid);
   $variables['title']     = check_plain($node->title);
   $variables['page']      = (bool)menu_get_object();
-  
+
   if ($node->build_mode == NODE_BUILD_PREVIEW) {
     unset($node->content['links']);
   }
-  
+
   // Render taxonomy links separately.
   $variables['terms']     = !empty($node->content['links']['terms']) ? drupal_render($node->content['links']['terms']) : '';
-  
+
   // Render all remaining node links.
   $variables['links']     = !empty($node->content['links']) ? drupal_render($node->content['links']) : '';
-  
+
   // Render any comments.
   $variables['comments']  = !empty($node->content['comments']) ? drupal_render($node->content['comments']) : '';
 

=== modified file 'modules/blog/blog.module'
--- modules/blog/blog.module	2008-12-31 12:02:21 +0000
+++ modules/blog/blog.module	2009-02-13 15:43:04 +0000
@@ -105,8 +105,9 @@ function blog_nodeapi_view($node, $tease
         'attributes' => array('title' => t("Read !username's latest blog entries.", array('!username' => $node->name))),
       );
       $node->content['links']['blog'] = array(
-        '#type' => 'node_links',
-        '#value' => $links,
+        '#theme' => 'links',
+        '#links' => $links,
+        '#attributes' => array('class' => 'links inline'),
       );
     }
   }

=== modified file 'modules/blog/blog.pages.inc'
--- modules/blog/blog.pages.inc	2009-01-27 00:22:24 +0000
+++ modules/blog/blog.pages.inc	2009-02-13 15:43:04 +0000
@@ -25,7 +25,7 @@ function blog_page_user($account) {
 
   $build['blog_actions'] = array(
     '#items' => $items,
-    '#theme' => 'list',
+    '#theme' => 'item_list',
     '#weight' => -1,
   );
 
@@ -62,7 +62,7 @@ function blog_page_last() {
     $items[] = l(t('Create new blog entry.'), "node/add/blog");
     $build['blog_actions'] = array(
       '#items' => $items,
-      '#theme' => 'list',
+      '#theme' => 'item_list',
       '#weight' => -1,
     );
   }

=== modified file 'modules/book/book.module'
--- modules/book/book.module	2009-01-26 14:08:40 +0000
+++ modules/book/book.module	2009-02-13 15:43:04 +0000
@@ -89,8 +89,9 @@ function book_nodeapi_view_link($node, $
 
   if (!empty($links)) {
     $node->content['links']['book'] = array(
-      '#type' => 'node_links',
-      '#value' => $links,
+      '#theme' => 'links',
+      '#links' => $links,
+      'attributes' => array('class' => 'links inline'),
     );
   }
 }

=== modified file 'modules/comment/comment.module'
--- modules/comment/comment.module	2009-02-07 20:10:40 +0000
+++ modules/comment/comment.module	2009-02-13 15:43:04 +0000
@@ -484,8 +484,9 @@ function comment_nodeapi_view($node, $te
     }
 
     $node->content['links']['comment'] = array(
-      '#type' => 'node_links',
-      '#value' => $links,
+      '#theme' => 'links',
+      '#links' => $links,
+      '#attributes' => array('class' => 'links inline'),
     );
 
     // Append the list of comments to $node->content for node detail pages.

=== modified file 'modules/node/node.module'
--- modules/node/node.module	2009-02-13 02:27:59 +0000
+++ modules/node/node.module	2009-02-13 15:43:04 +0000
@@ -138,9 +138,6 @@ function node_theme() {
     'node_admin_overview' => array(
       'arguments' => array('name' => NULL, 'type' => NULL),
     ),
-    'node_links' => array(
-      'arguments' => array('element' => NULL),
-    ),
   );
 }
 
@@ -3133,27 +3130,3 @@ function node_list_permissions($type) {
 
   return $perms;
 }
-
-/**
- * Implementation of hook_elements().
- */
-function node_elements() {
-  $type['node_links'] = array('#theme' => 'node_links');
-
-  return $type;
-}
-
-/**
- * Format a set of node links.
- *
- * @param $element
- *   An associative array containing the properties of the element.
- *   Properties used:  value
- * @return
- *   A themed HTML string representing the links.
- *
- * @ingroup themeable
- */
-function theme_node_links($element) {
-  return theme('links', $element['#value'],  array('class' => 'links inline'));
-}

=== modified file 'modules/statistics/statistics.module'
--- modules/statistics/statistics.module	2009-01-26 14:08:40 +0000
+++ modules/statistics/statistics.module	2009-02-13 15:43:04 +0000
@@ -113,8 +113,9 @@ function statistics_nodeapi_view($node, 
   }
 
   $node->content['links']['statistics'] = array(
-    '#type' => 'node_links',
-    '#value' => $links,
+    '#theme' => 'links',
+    '#links' => $links,
+    '#attributes' => array('class' => 'links inline'),
   );
 }
 

=== modified file 'modules/taxonomy/taxonomy.module'
--- modules/taxonomy/taxonomy.module	2009-02-11 03:53:36 +0000
+++ modules/taxonomy/taxonomy.module	2009-02-13 15:43:04 +0000
@@ -72,9 +72,10 @@ function taxonomy_nodeapi_view($node) {
   }
   
   $node->content['links']['terms'] = array(
-    '#type' => 'node_links',
-    '#value' => $links,
+    '#theme' => 'links',
+    '#links' => $links,
     '#sorted' => TRUE,
+    '#attributes' => array('class' => 'links inline'),
   );
 }
 

=== modified file 'modules/tracker/tracker.css'
--- modules/tracker/tracker.css	2006-08-14 07:14:48 +0000
+++ modules/tracker/tracker.css	2009-02-13 15:43:04 +0000
@@ -1,8 +1,8 @@
 /* $Id: tracker.css,v 1.1 2006/08/14 07:14:50 drumm Exp $ */
 
-#tracker td.replies {
+.page-tracker td.replies {
   text-align: center;
 }
-#tracker table {
+.page-tracker table {
   width: 100%;
 }

=== modified file 'modules/tracker/tracker.pages.inc'
--- modules/tracker/tracker.pages.inc	2008-12-30 16:43:14 +0000
+++ modules/tracker/tracker.pages.inc	2009-02-13 15:43:04 +0000
@@ -62,12 +62,16 @@ function tracker_page($account = NULL, $
     $rows[] = array(array('data' => t('No posts available.'), 'colspan' => '5'));
   }
 
-  $header = array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last updated'));
+  $page['tracker'] = array(
+    '#rows' => $rows,
+    '#header' => array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last updated')),
+    '#theme' => 'table',
+  );
+  $page['pager'] = array(
+    '#markup' => theme('pager', NULL, 25, 0),
+    '#weight' => 10,
+  );
+  $page['#sorted'] = TRUE;
 
-  $output = '<div id="tracker">';
-  $output .= theme('table', $header, $rows);
-  $output .= theme('pager', NULL, 25, 0);
-  $output .= '</div>';
-
-  return $output;
+  return drupal_get_page($page);
 }

=== modified file 'modules/translation/translation.module'
--- modules/translation/translation.module	2009-01-22 03:11:52 +0000
+++ modules/translation/translation.module	2009-02-13 15:43:04 +0000
@@ -181,8 +181,9 @@ function translation_nodeapi_view(&$node
           'attributes' => array('title' => $translations[$langcode]->title, 'class' => 'translation-link')
         );
         $node->content['links']['translation'] = array(
-          '#type' => 'node_links',
-          '#value' => $links,
+          '#theme' => 'links',
+          '#links' => $links,
+          '#attributes' => array('class' => 'links inline'),
         );
       }
     }

=== modified file 'modules/upload/upload.module'
--- modules/upload/upload.module	2009-02-03 18:55:29 +0000
+++ modules/upload/upload.module	2009-02-13 15:43:04 +0000
@@ -77,8 +77,9 @@ function upload_nodeapi_links($node, $te
         'fragment' => 'attachments'
       );
       $node->content['links']['upload_attachments'] = array(
-        '#type' => 'node_links',
-        '#value' => $links,
+        '#theme' => 'links',
+        '#links' => $links,
+        'attributes' => array('class' => 'links inline'),
       );
     }
   }

