r87013 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87012‎ | r87013 | r87014 >
Date:14:54, 27 April 2011
Author:maxsem
Status:ok
Tags:
Comment:
Don't include Special: and Media: in ns list
Modified paths:
  • /trunk/extensions/ApiSandbox/ext.apiSandbox.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ApiSandbox/ext.apiSandbox.js
@@ -20,6 +20,9 @@
2121 function( data ) {
2222 if ( isset( data.query ) && isset( data.query.namespaces ) ) {
2323 for ( var id in data.query.namespaces ) {
 24+ if ( id < 0 ) {
 25+ continue;
 26+ }
2427 var ns = data.query.namespaces[id]['*'];
2528 if ( ns == '' ) {
2629 ns = mw.msg( 'apisb-ns-main' );

Status & tagging log