Use present function for adding accesskey. This way the browser key combination is...
[lhc/web/wiklou.git] / includes / specials / SpecialExport.php
index 3559dde..9872b1d 100644 (file)
@@ -33,7 +33,7 @@ class SpecialExport extends SpecialPage {
        public function execute( $par ) {
                global $wgOut, $wgRequest, $wgSitename, $wgExportAllowListContributors;
                global $wgExportAllowHistory, $wgExportMaxHistory, $wgExportMaxLinkDepth;
-               global $wgExportFromNamespaces;
+               global $wgExportFromNamespaces, $wgUser;
 
                $this->setHeaders();
                $this->outputHeader();
@@ -172,7 +172,7 @@ class SpecialExport extends SpecialPage {
                //$form .= Xml::checkLabel( wfMsg( 'export-images' ), 'images', 'wpExportImages', false ) . '<br />';
                $form .= Xml::checkLabel( wfMsg( 'export-download' ), 'wpDownload', 'wpDownload', true ) . '<br />';
 
-               $form .= Xml::submitButton( wfMsg( 'export-submit' ), array( 'accesskey' => 's' ) );
+               $form .= Xml::submitButton( wfMsg( 'export-submit' ), $wgUser->getSkin()->tooltipAndAccessKeyAttribs( 'export' ) );
                $form .= Xml::closeElement( 'form' );
                $wgOut->addHTML( $form );
        }