This is not configurable at the moment. It probably should be, but
that can be done later.
Bug: T121268
Change-Id: I8de33a69979eff5dba13f82959011c44a92339e1
ForeignStructuredUpload.prototype.getCategories = function () {
var i, cat, categoryLinks = [];
ForeignStructuredUpload.prototype.getCategories = function () {
var i, cat, categoryLinks = [];
+ if ( this.categories.length === 0 ) {
+ return '{{subst:unc}}';
+ }
+
for ( i = 0; i < this.categories.length; i++ ) {
cat = this.categories[ i ];
categoryLinks.push( '[[Category:' + cat + ']]' );
for ( i = 0; i < this.categories.length; i++ ) {
cat = this.categories[ i ];
categoryLinks.push( '[[Category:' + cat + ']]' );