Index: trunk/extensions/Gadgets/SpecialGadgets.php |
— | — | @@ -31,11 +31,9 @@ |
32 | 32 | * @param $par Parameters passed to the page |
33 | 33 | */ |
34 | 34 | function execute( $par ) { |
35 | | - global $wgRequest; |
36 | | - |
37 | | - $export = $wgRequest->getVal( 'export' ); |
38 | | - if ( $export ) { |
39 | | - $this->showExportForm( $export ); |
| 35 | + $parts = explode( '/', $par ); |
| 36 | + if ( count( $parts ) == 2 && $parts[0] == 'export' ) { |
| 37 | + $this->showExportForm( $parts[1] ); |
40 | 38 | } else { |
41 | 39 | $this->showMainForm(); |
42 | 40 | } |
— | — | @@ -94,9 +92,7 @@ |
95 | 93 | if ( $editInterfaceAllowed ) { |
96 | 94 | $links[] = $skin->link( $t, wfMsgHTML( 'edit' ), array(), array( 'action' => 'edit' ) ); |
97 | 95 | } |
98 | | - $links[] = $skin->link( $this->getTitle(), wfMsgHtml( 'gadgets-export' ), |
99 | | - array(), array( 'export' => $gname ) |
100 | | - ); |
| 96 | + $links[] = $skin->link( $this->getTitle( "export/$gname" ), wfMsgHtml( 'gadgets-export' ) ); |
101 | 97 | |
102 | 98 | $ttext = wfMsgExt( "gadget-$gname", $msgOpt ); |
103 | 99 | |