From f5d3fa10086e4117c6ea26596ffbe84258f01a93 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 24 Nov 2005 19:24:38 +0000 Subject: - Patch #38296 by Tobias Maier: fixed bug with book links. --- modules/book.module | 6 +++--- modules/book/book.module | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/book.module b/modules/book.module index 1768ab6e9..92f5c4a83 100644 --- a/modules/book.module +++ b/modules/book.module @@ -487,7 +487,7 @@ function theme_book_navigation($node) { } if ($prev = book_prev($node)) { - drupal_add_link(array('rel' => 'prev', 'href' => 'node/'. $prev->nid)); + drupal_add_link(array('rel' => 'prev', 'href' => url('node/'. $prev->nid))); $links .= ''; @@ -497,7 +497,7 @@ function theme_book_navigation($node) { $links .= ''; // Make an empty div to fill the space. } if ($next = book_next($node)) { - drupal_add_link(array('rel' => 'next', 'href' => 'node/'. $next->nid)); + drupal_add_link(array('rel' => 'next', 'href' => url('node/'. $next->nid))); $links .= ''; @@ -507,7 +507,7 @@ function theme_book_navigation($node) { $links .= ''; // Make an empty div to fill the space. } if ($node->parent) { - drupal_add_link(array('rel' => 'index', 'href' => 'node/'. $node->parent)); + drupal_add_link(array('rel' => 'index', 'href' => url('node/'. $node->parent))); $links .= '
'; $links .= l(t('up'), 'node/'. $node->parent, array('title' => t('View this page\'s parent section.'))); $links .= '
'; diff --git a/modules/book/book.module b/modules/book/book.module index 1768ab6e9..92f5c4a83 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -487,7 +487,7 @@ function theme_book_navigation($node) { } if ($prev = book_prev($node)) { - drupal_add_link(array('rel' => 'prev', 'href' => 'node/'. $prev->nid)); + drupal_add_link(array('rel' => 'prev', 'href' => url('node/'. $prev->nid))); $links .= ''; @@ -497,7 +497,7 @@ function theme_book_navigation($node) { $links .= ''; // Make an empty div to fill the space. } if ($next = book_next($node)) { - drupal_add_link(array('rel' => 'next', 'href' => 'node/'. $next->nid)); + drupal_add_link(array('rel' => 'next', 'href' => url('node/'. $next->nid))); $links .= ''; @@ -507,7 +507,7 @@ function theme_book_navigation($node) { $links .= ''; // Make an empty div to fill the space. } if ($node->parent) { - drupal_add_link(array('rel' => 'index', 'href' => 'node/'. $node->parent)); + drupal_add_link(array('rel' => 'index', 'href' => url('node/'. $node->parent))); $links .= '
'; $links .= l(t('up'), 'node/'. $node->parent, array('title' => t('View this page\'s parent section.'))); $links .= '
'; -- cgit v1.2.3