Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js |
— | — | @@ -20,6 +20,9 @@ |
21 | 21 | function( data ) { |
22 | 22 | if ( isset( data.query ) && isset( data.query.namespaces ) ) { |
23 | 23 | for ( var id in data.query.namespaces ) { |
| 24 | + if ( id < 0 ) { |
| 25 | + continue; |
| 26 | + } |
24 | 27 | var ns = data.query.namespaces[id]['*']; |
25 | 28 | if ( ns == '' ) { |
26 | 29 | ns = mw.msg( 'apisb-ns-main' ); |