Index: trunk/extensions/GNSM/SpecialGNSM_body.php |
— | — | @@ -134,7 +134,8 @@ |
135 | 135 | $title = Title::makeTitle( $row->page_namespace, $row->page_title); |
136 | 136 | |
137 | 137 | if ( $title ){ |
138 | | - print $this->params['nameSpace']; |
| 138 | + //This is printing things in places it shouldn't |
| 139 | + // print $this->params['nameSpace']; |
139 | 140 | |
140 | 141 | $titleText = ( true == $this->params['nameSpace'] ) ? $title->getPrefixedText() : $title->getText(); |
141 | 142 | |
— | — | @@ -289,7 +290,7 @@ |
290 | 291 | $this->params['orderMethod'] = 'categoryadd'; |
291 | 292 | $this->params['order'] = 'descending'; |
292 | 293 | $this->params['redirects'] = 'exclude'; |
293 | | - $this->params['stable'] = $quality = 'only'; |
| 294 | + $this->params['stable'] = $this->params['quality'] = 'only'; |
294 | 295 | |
295 | 296 | $this->params['nameSpace'] = false; |
296 | 297 | $this->params['iNameSpace'] = 0; |
— | — | @@ -456,7 +457,7 @@ |
457 | 458 | $this->params['notCatCount'] = count( $this->notCategories ); |
458 | 459 | $totalCatCount = $this->params['catCount'] + $this->params['notCatCount']; |
459 | 460 | |
460 | | - if (( $this->params['catCount'] < 1 && false == $this->params['nameSpace'] ) || ( $totalCatCount < $this->wgDPLminCategories )){ |
| 461 | + if (( $this->params['catCount'] < 1 && false == $this->params['nameSpace'] ) || ( $totalCatCount < $this->wgDPlminCategories )){ |
461 | 462 | //echo "Boom on catCount\n"; |
462 | 463 | $parser = new Parser; |
463 | 464 | $poptions = new ParserOptions; |
— | — | @@ -501,16 +502,18 @@ |
502 | 503 | $list = explode( "\n*", "\n$msg"); |
503 | 504 | foreach($list as $item) { |
504 | 505 | $mapping = explode('|', $item, 2); |
505 | | - if ( trim( $mapping[1] ) == '__MASK__') { |
506 | | - $catMask[trim($mapping[0])] = true; |
507 | | - } else { |
508 | | - $catMap[trim($mapping[0])] = trim($mapping[1]); |
| 506 | + if ( count( $mapping ) == 2 ) { |
| 507 | + if ( trim( $mapping[1] ) == '__MASK__') { |
| 508 | + $catMask[trim($mapping[0])] = true; |
| 509 | + } else { |
| 510 | + $catMap[trim($mapping[0])] = trim($mapping[1]); |
| 511 | + } |
509 | 512 | } |
510 | 513 | } |
511 | 514 | } |
512 | 515 | foreach ( $cats as $key => $val ){ |
513 | 516 | $cat = str_replace( '_', ' ', trim( substr( $key, strpos( $key, ':' ) + 1 ) ) ); |
514 | | - if (!$catMask[$cat]) { |
| 517 | + if (!isset($catMask[$cat])) { |
515 | 518 | if (isset($catMap[$cat])) { |
516 | 519 | $str .= ', ' . str_replace( '_', ' ', trim ( $catMap[$cat] ) ); |
517 | 520 | } else { |