summaryrefslogtreecommitdiff
path: root/modules/book
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-24 19:24:38 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-24 19:24:38 +0000
commitf5d3fa10086e4117c6ea26596ffbe84258f01a93 (patch)
tree7a0606583155d112a25ecb4d4dce23f7f7e0e6a4 /modules/book
parent19e1867d101d6eadb039cc82714695148f8a4a3b (diff)
downloadbrdo-f5d3fa10086e4117c6ea26596ffbe84258f01a93.tar.gz
brdo-f5d3fa10086e4117c6ea26596ffbe84258f01a93.tar.bz2
- Patch #38296 by Tobias Maier: fixed bug with book links.
Diffstat (limited to 'modules/book')
-rw-r--r--modules/book/book.module6
1 files changed, 3 insertions, 3 deletions
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 .= '<div class="prev">';
$links .= l(t('previous'), 'node/'. $prev->nid, array('title' => t('View the previous page.')));
$links .= '</div>';
@@ -497,7 +497,7 @@ function theme_book_navigation($node) {
$links .= '<div class="prev">&nbsp;</div>'; // 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 .= '<div class="next">';
$links .= l(t('next'), 'node/'. $next->nid, array('title' => t('View the next page.')));
$links .= '</div>';
@@ -507,7 +507,7 @@ function theme_book_navigation($node) {
$links .= '<div class="next">&nbsp;</div>'; // 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 .= '<div class="up">';
$links .= l(t('up'), 'node/'. $node->parent, array('title' => t('View this page\'s parent section.')));
$links .= '</div>';