From: pdontthink Date: Tue, 6 May 2008 21:11:15 +0000 (+0000) Subject: Allow plugins to add or modify page headers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c0071a26acee81bf0b70b45d4b436648d88edd27;p=squirrelmail.git Allow plugins to add or modify page headers git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13096 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/page_header.php b/functions/page_header.php index 8052a0a9..e7cf9733 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -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: