Index: trunk/extensions/HelpCommons/HelpCommons.php |
— | — | @@ -202,15 +202,15 @@ |
203 | 203 | * @param $result |
204 | 204 | * @return bool |
205 | 205 | */ |
206 | | -function fnProtectHelpCommons( &$title, &$user, $action, &$result) { |
207 | | - global $wgHelpCommonsFetchingWikis, $wgDBname; |
| 206 | +function fnProtectHelpCommons( &$title, &$user, $action, &$result ) { |
| 207 | + global $wgHelpCommonsFetchingWikis, $wgLanguageCode, $wgDBname; |
208 | 208 | |
209 | | - foreach ( $wgHelpCommonsFetchingWikis as $urls ) { |
| 209 | + foreach ( $wgHelpCommonsFetchingWikis as $language => $urls ) { |
210 | 210 | foreach ( $urls as $url => $helpwiki ) { |
211 | 211 | // only protect Help pages on non-help-pages-fetching wikis |
212 | | - if( $wgDBname != $helpwiki ) { |
| 212 | + if ( $wgLanguageCode == "$language" && $wgDBname != $helpwiki ) { |
213 | 213 | // block actions 'edit' and 'create' |
214 | | - if( $action != 'edit' && $action != 'create' ) { |
| 214 | + if ( $action != 'edit' && $action != 'create' ) { |
215 | 215 | return true; |
216 | 216 | } |
217 | 217 | |