Index: trunk/phase3/includes/Export.php |
— | — | @@ -522,7 +522,7 @@ |
523 | 523 | */ |
524 | 524 | class DumpNotalkFilter extends DumpFilter { |
525 | 525 | function pass( $page ) { |
526 | | - return Namespace::isTalk( $page->page_namespace ); |
| 526 | + return !Namespace::isTalk( $page->page_namespace ); |
527 | 527 | } |
528 | 528 | } |
529 | 529 | |
— | — | @@ -531,7 +531,7 @@ |
532 | 532 | */ |
533 | 533 | class DumpNamespaceFilter extends DumpFilter { |
534 | 534 | var $invert = false; |
535 | | - var $match = array(); |
| 535 | + var $namespaces = array(); |
536 | 536 | |
537 | 537 | function DumpNamespaceFilter( &$sink, $param ) { |
538 | 538 | parent::DumpFilter( $sink ); |
— | — | @@ -561,12 +561,14 @@ |
562 | 562 | |
563 | 563 | foreach( explode( ',', $param ) as $key ) { |
564 | 564 | $key = trim( $key ); |
565 | | - if( isset( $contants[$key] ) ) { |
| 565 | + if( isset( $constants[$key] ) ) { |
566 | 566 | $ns = $constants[$key]; |
567 | 567 | $this->namespaces[$ns] = true; |
568 | 568 | } elseif( is_numeric( $key ) ) { |
569 | 569 | $ns = intval( $key ); |
570 | 570 | $this->namespaces[$ns] = true; |
| 571 | + } else { |
| 572 | + die( "Unrecognized namespace key '$key'\n" ); |
571 | 573 | } |
572 | 574 | } |
573 | 575 | } |