### Eclipse Workspace Patch 1.0
#P pathauto
Index: pathauto_node.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/pathauto/pathauto_node.inc,v
retrieving revision 1.29
diff -u -r1.29 pathauto_node.inc
--- pathauto_node.inc	11 Nov 2006 23:34:51 -0000	1.29
+++ pathauto_node.inc	8 Dec 2006 22:40:57 -0000
@@ -133,10 +133,9 @@
 
   // Book title
   if (module_exists('book') and $node->type == 'book') {
-    $nodebook = book_load($node);
-    $path = book_location($nodebook);
+    $path = book_location($node);
     $placeholders[t('[book]')] = pathauto_cleanstring($path[0]->title);
-    $bookhierarchy = book_location($nodebook);
+    $bookhierarchy = book_location($node);
     $bookpath = '';
     foreach ($bookhierarchy as $bookelement) {
       if ($bookpath == '') {
