From: ayush_garg Date: Wed, 11 Feb 2015 11:13:26 +0000 (+0530) Subject: Export: Preloading the category name through a URL parameter X-Git-Tag: 1.31.0-rc.0~12310 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/Bar?a=commitdiff_plain;h=c14edb62716617b87790436f06b3144c4cc1d5ed;p=lhc%2Fweb%2Fwiklou.git Export: Preloading the category name through a URL parameter Bug: T88683 Change-Id: Iff7d4c1e7138c5160dbaa7b2455695837026d6c1 --- diff --git a/includes/specials/SpecialExport.php b/includes/specials/SpecialExport.php index 38c52a0178..c30d962a99 100644 --- a/includes/specials/SpecialExport.php +++ b/includes/specials/SpecialExport.php @@ -182,13 +182,20 @@ class SpecialExport extends SpecialPage { $out = $this->getOutput(); $out->addWikiMsg( 'exporttext' ); + if ( $page == '' ) { + $categoryName = $request->getText( 'catname' ); + } else { + $categoryName = ''; + } + $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getPageTitle()->getLocalURL( 'action=submit' ) ) ); $form .= Xml::inputLabel( $this->msg( 'export-addcattext' )->text(), 'catname', 'catname', - 40 + 40, + $categoryName ) . ' '; $form .= Xml::submitButton( $this->msg( 'export-addcat' )->text(),