[Koha-patches] [PATCH] Bug 4514 (Error handling in 500.pl is erroneous itself)

Galen Charlton gmcharlt at gmail.com
Mon May 17 15:14:54 CEST 2010


Hi,


On Mon, May 17, 2010 at 9:12 AM, Marcel de Rooy
<M.de.Rooy at rijksmuseum.nl> wrote:
> The version in 3.0.x has only four parameters. The fourth is optional and defaults to text/html. The fifth is just ignored.
> The 500 message comes from the template.
> Do I oversee something?

Yes.  From the 3.0.x POD for output_html_with_http_headers:

=item output_html_with_http_headers

   &output_html_with_http_headers($query, $cookie, $html[,
$content_type][, status])

Outputs the HTML page $html with the appropriate HTTP headers,
with the authentication cookie $cookie and a Content-Type that
corresponds to the HTML page $html.

If the optional C<$content_type> parameter is called, set the
response's Content-Type to that value instead of "text/html".

=cut

The code does use the status parameter.

Regards,

Galen

-- 
Galen Charlton
gmcharlt at gmail.com



More information about the Koha-patches mailing list