diff --git a/print.module b/print.module index 529c55a9833b781572a7217ef0390dcf63d3b912..7a0d6a319538ce402a6fc394a88f7693cecdbf23 100644 --- a/print.module +++ b/print.module @@ -223,7 +223,7 @@ function _print_format_link_aux($type = 0, $text = '', $img = '', $title = '', $ } if ($type >= 2) { - $img = ''. $text .''; + $img = theme('image', $img, $text, '', array('style' => 'vertical-align: middle')); $html = TRUE; switch ($type) { case 2: @@ -254,7 +254,7 @@ function _print_format_link_aux($type = 0, $text = '', $img = '', $title = '', $ function theme_print_format_link() { $print_settings = variable_get('print_settings', print_settings_default()); $text = t('Printer-friendly version'); - $img = base_path() . drupal_get_path('module', 'print') .'/icons/print_icon.gif'; + $img = drupal_get_path('module', 'print') .'/icons/print_icon.gif'; $title = t('Display a printer-friendly version of this page.'); $class = 'print-page'; $format = _print_format_link_aux($print_settings['show_link'], $text, $img, $title, $class); diff --git a/print.pages.inc b/print.pages.inc index 1727eedf4da3134bc938921e2bb011317fbe997b..5aa0732cc58f2cec072526dcf8293634f62c9567 100644 --- a/print.pages.inc +++ b/print.pages.inc @@ -494,7 +494,7 @@ function _print_generate_path($path) { // Adapted from index.php. $node = new stdClass(); $node->body = menu_execute_active_handler(); - $node->title = menu_get_active_title(); + $node->title = drupal_get_title(); $node->path = $path; // It may happen that a drupal_not_found is called in the above call