Only grab comments marked i18n to the template.
[squirrelmail.git] / functions / page_header.php
index 8052a0a9e63829b821b3c02f928672aaa4e45f2e..22413f414ee552b5ba3a535222d27384bdb90887 100644 (file)
@@ -96,6 +96,9 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
         $header_tags .= $oTemplate->fetch_right_to_left_stylesheet_link();
     }
 
+    // 5. Printer friendly stylesheet
+    $header_tags .= create_css_link($base_uri . 'css/print.css', 'printerfriendly', false, 'print');
+
     if ($squirrelmail_language == 'ja_JP') {
         /*
          * force correct detection of charset, when browser does not follow
@@ -117,9 +120,9 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE
         //       hooks for the current page request.  See 
         //       the Sent Confirmation v1.7 or Restrict Senders v1.2
         //       plugins for examples of this approach.
-        global $null;
         ob_start();
-        do_hook('generic_header', $null);
+        $temp = array(&$header_tags);
+        do_hook('generic_header', $temp);
         $output = ob_get_contents();
         ob_end_clean();
         // plugin authors can debug their errors with one of the following: