Last modified: 2007-07-16 16:14:56 UTC
When using Special:Exportpages to export all my pages, it would be better to get a file instead an XML in a browserwindow. Because if XML is shown in a browserwindow, all tags are omitted. I am about to write a patch for that using the php commands tmpfile header and readfile
Not sure if this is required; browsers give the option to save as XML. I suppose we could emit the appropriate Content-disposition header to encourage the user agent to offer to save as a file instead, but on the whole, I'm not sure *that* is needed, either.
*** This bug has been marked as a duplicate of bug 3173 ***
Here's the patch: --- SpecialExport-0.php 2007-07-16 18:11:59.000000000 +0200 +++ SpecialExport.php 2007-07-16 18:10:22.000000000 +0200 @@ -151,6 +151,7 @@ function wfSpecialExport( $page = '' ) { // This should provide safer streaming for pages with history wfResetOutputBuffers(); header( "Content-type: application/xml; charset=utf-8"); + header("Content-Disposition: attachment" ); $pages = explode( "\n", $page ); $db = wfGetDB( DB_SLAVE );