X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSpecialExport.php;h=b9f46506f8f0f8478568163a9499c8c561bfe92e;hb=d238b93290c86e2495e3e67d99630d9cdace2471;hp=2c6a2c56596e2802c0023deccf00137160a1b3f8;hpb=14052ee5e5ce0fa7809600f6cc172a39f55b29ad;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SpecialExport.php b/includes/SpecialExport.php index 2c6a2c5659..b9f46506f8 100644 --- a/includes/SpecialExport.php +++ b/includes/SpecialExport.php @@ -16,13 +16,15 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # http://www.gnu.org/copyleft/gpl.html - /** * * @package MediaWiki * @subpackage SpecialPage */ +/** */ +require_once( 'Revision.php' ); + /** * */ @@ -38,16 +40,17 @@ function wfSpecialExport( $page = '' ) { } if( $page != '' ) { + $wgOut->disable(); header( "Content-type: application/xml; charset=utf-8" ); $pages = explode( "\n", $page ); $xml = pages2xml( $pages, $curonly ); echo $xml; - wfAbruptExit(); + return; } $wgOut->addWikiText( wfMsg( "exporttext" ) ); $titleObj = Title::makeTitle( NS_SPECIAL, "Export" ); - $action = $titleObj->escapeLocalURL(); + $action = $titleObj->escapeLocalURL( 'action=submit' ); $wgOut->addHTML( "