Allow plugins to add or modify page headers
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 May 2008 21:11:15 +0000 (21:11 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 May 2008 21:11:15 +0000 (21:11 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13096 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index 8052a0a9e63829b821b3c02f928672aaa4e45f2e..e7cf9733b2acee565a97b4e735d59643adf2c966 100644 (file)
@@ -117,9 +117,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: