Update message initialiser to use Revision functions for backend-independence. No...
[lhc/web/wiklou.git] / includes / SpecialExport.php
index c8f3052..1101e4f 100644 (file)
 # 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
-
-require_once( 'Revision.php' );
-
 /**
  *
  * @package MediaWiki
  * @subpackage SpecialPage
  */
 
+/** */
+require_once( 'Revision.php' );
+
 /**
  *
  */
@@ -50,7 +50,7 @@ function wfSpecialExport( $page = '' ) {
        
        $wgOut->addWikiText( wfMsg( "exporttext" ) );
        $titleObj = Title::makeTitle( NS_SPECIAL, "Export" );
-       $action = $titleObj->escapeLocalURL();
+       $action = $titleObj->escapeLocalURL( 'action=submit' );
        $wgOut->addHTML( "
 <form method='post' action=\"$action\">
 <input type='hidden' name='action' value='submit' />
@@ -163,7 +163,9 @@ function revision2xml( $rev, $full ) {
                $c = xmlsafe( $rev->getComment() );
                $xml .= "      <comment>$c</comment>\n";
        }
+
        $t = xmlsafe( $rev->getText() );
+
        $xml .= "      <text>$t</text>\n";
        $xml .= "    </revision>\n";
        wfProfileOut( $fname );
@@ -199,5 +201,4 @@ function xmlsafe( $string ) {
        wfProfileOut( $fname );
        return $string;
 }
-
-?>
+?>
\ No newline at end of file