Index: trunk/extensions/Gadgets/Gadgets.i18n.php |
— | — | @@ -41,7 +41,6 @@ |
42 | 42 | <pre>$2</pre> |
43 | 43 | You must have appropriate permissions on destination wiki (including the right to edit system messages) and import from file uploads must be enabled.', |
44 | 44 | 'gadgets-export-download' => 'Download', |
45 | | - 'right-exportgadgets' => 'Export gadgets', |
46 | 45 | ); |
47 | 46 | |
48 | 47 | /** Message documentation (Message documentation) |
Index: trunk/extensions/Gadgets/Gadgets.php |
— | — | @@ -36,9 +36,6 @@ |
37 | 37 | $wgSpecialPages['Gadgets'] = 'SpecialGadgets'; |
38 | 38 | $wgSpecialPageGroups['Gadgets'] = 'wiki'; |
39 | 39 | |
40 | | -// to restrict bots and spiders from pegging the server, disable this right for anons |
41 | | -$wgGroupPermissions['*']['exportgadgets'] = true; |
42 | | - |
43 | 40 | function wfGadgetsArticleSaveComplete( $article, $user, $text ) { |
44 | 41 | //update cache if MediaWiki:Gadgets-definition was edited |
45 | 42 | $title = $article->mTitle; |
Index: trunk/extensions/Gadgets/SpecialGadgets.php |
— | — | @@ -65,7 +65,6 @@ |
66 | 66 | |
67 | 67 | $msgOpt = array( 'parseinline', 'parsemag' ); |
68 | 68 | $editInterfaceAllowed = $wgUser->isAllowed( 'editinterface' ); |
69 | | - $exportAllowed = $wgUser->isAllowed( 'exportgadgets' ); |
70 | 69 | |
71 | 70 | foreach ( $gadgets as $section => $entries ) { |
72 | 71 | if ( $section !== false && $section !== '' ) { |
— | — | @@ -95,11 +94,9 @@ |
96 | 95 | if ( $editInterfaceAllowed ) { |
97 | 96 | $links[] = $skin->link( $t, wfMsgHTML( 'edit' ), array(), array( 'action' => 'edit' ) ); |
98 | 97 | } |
99 | | - if ( $exportAllowed ) { |
100 | | - $links[] = $skin->link( $this->getTitle(), wfMsgHtml( 'gadgets-export' ), |
101 | | - array(), array( 'export' => $gname ) |
102 | | - ); |
103 | | - } |
| 98 | + $links[] = $skin->link( $this->getTitle(), wfMsgHtml( 'gadgets-export' ), |
| 99 | + array(), array( 'export' => $gname ) |
| 100 | + ); |
104 | 101 | |
105 | 102 | $ttext = wfMsgExt( "gadget-$gname", $msgOpt ); |
106 | 103 | |
— | — | @@ -107,11 +104,7 @@ |
108 | 105 | $listOpen = true; |
109 | 106 | $wgOut->addHTML( Xml::openElement( 'ul' ) ); |
110 | 107 | } |
111 | | - if ( !empty( $links ) ) { |
112 | | - $lnk = '  ' . wfMsg( 'parentheses', $wgLang->pipeList( $links ) ); |
113 | | - } else { |
114 | | - $lnk = ''; |
115 | | - } |
| 108 | + $lnk = '  ' . wfMsg( 'parentheses', $wgLang->pipeList( $links ) ); |
116 | 109 | $wgOut->addHTML( Xml::openElement( 'li' ) . |
117 | 110 | $ttext . $lnk . "<br />" . |
118 | 111 | wfMsgHTML( 'gadgets-uses' ) . wfMsg( 'colon-separator' ) |
— | — | @@ -141,11 +134,6 @@ |
142 | 135 | public function showExportForm( $gadget ) { |
143 | 136 | global $wgOut, $wgRequest, $wgUser, $wgScript; |
144 | 137 | |
145 | | - if ( !$wgUser->isAllowed( 'exportgadgets' ) ) { |
146 | | - $wgOut->permissionRequired( 'exportgadgets' ); |
147 | | - return; |
148 | | - } |
149 | | - |
150 | 138 | $gadgets = wfLoadGadgets(); |
151 | 139 | if ( !isset( $gadgets[$gadget] ) ) { |
152 | 140 | $wgOut->showErrorPage( 'error', 'gadgets-not-found', array( $gadget ) ); |