From 62427644ebc07c2be56153ffc2db012ced6eef7c Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 21 May 2005 09:59:15 +0000
Subject: [PATCH] - Patch #23320 by Chris Messina: made it easier to theme the
 printer-friendly book pages.

---
 modules/book.module      | 2 +-
 modules/book/book.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/book.module b/modules/book.module
index 80c32d3c582e..abb79bc40106 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -620,7 +620,7 @@ function book_print($nid = 0, $depth = 1) {
 
   $html = '<html><head><title>'. check_plain($node->title) .'</title>';
   $html .= '<base href="'. $base_url .'/" />';
-  $html .= "<style type=\"text/css\">\n@import url(misc/print.css);\n</style>";
+  $html .= theme_stylesheet_import('misc/print.css', 'print');
   $html .= '</head><body>'. $output .'</body></html>';
 
   print $html;
diff --git a/modules/book/book.module b/modules/book/book.module
index 80c32d3c582e..abb79bc40106 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -620,7 +620,7 @@ function book_print($nid = 0, $depth = 1) {
 
   $html = '<html><head><title>'. check_plain($node->title) .'</title>';
   $html .= '<base href="'. $base_url .'/" />';
-  $html .= "<style type=\"text/css\">\n@import url(misc/print.css);\n</style>";
+  $html .= theme_stylesheet_import('misc/print.css', 'print');
   $html .= '</head><body>'. $output .'</body></html>';
 
   print $html;
-- 
GitLab