Index: trunk/extensions/SemanticMediaWiki/includes/SMW_InlineQueries.php |
— | — | @@ -621,10 +621,6 @@ |
622 | 622 | if (!$smwgIQRedirectNormalization) { |
623 | 623 | return $titles; |
624 | 624 | } |
625 | | - |
626 | | - print "STARTING NORMALIZATION FOR:<br />\n"; |
627 | | - foreach ($titles as $title) print "+ " . $title->getPrefixedText(); |
628 | | - print "<br />\n"; |
629 | 625 | |
630 | 626 | $stable = 0; |
631 | 627 | $check_titles = array_diff( $titles , array() ); // Copies the array |
— | — | @@ -633,8 +629,6 @@ |
634 | 630 | $new_titles = array(); |
635 | 631 | foreach ( $check_titles as $title ) { |
636 | 632 | // there... |
637 | | - |
638 | | - print "1 "; |
639 | 633 | if ( 0 != $title->getArticleID() ) { |
640 | 634 | $res = $this->dbr->select( |
641 | 635 | array( 'page' , 'pagelinks' ), |
— | — | @@ -651,15 +645,12 @@ |
652 | 646 | if (!array_key_exists( $id , $titles)) { |
653 | 647 | $titles[$id] = $new_title; |
654 | 648 | $new_titles[] = $new_title; |
655 | | - print "+ " . $new_title->getPrefixedText() . "(" . $new_title->getArticleID() . ") "; |
656 | 649 | } |
657 | 650 | } |
658 | 651 | } |
659 | 652 | $this->dbr->freeResult( $res ); |
660 | 653 | } |
661 | 654 | |
662 | | - print "<br />\n"; |
663 | | - print "2 "; |
664 | 655 | // ... and back again |
665 | 656 | $res = $this->dbr->select( |
666 | 657 | array( 'page' , 'pagelinks' ), |
— | — | @@ -674,7 +665,6 @@ |
675 | 666 | if (!array_key_exists( $row['page_id'] , $titles)) { |
676 | 667 | $titles[$row['page_id']] = $new_title; |
677 | 668 | $new_titles[] = $new_title; |
678 | | - print "+ " . $new_title->getPrefixedText() . "(" . $new_title->getArticleID() . ") "; |
679 | 669 | } |
680 | 670 | } |
681 | 671 | $this->dbr->freeResult( $res ); |
— | — | @@ -683,8 +673,6 @@ |
684 | 674 | $stable= 500; // stop |
685 | 675 | else |
686 | 676 | $check_titles = array_diff( $new_titles , array() ); |
687 | | -// foreach ($new_titles as $title) print "+ " . $title->getPrefixedText(); |
688 | | - print "<br />\n"; |
689 | 677 | } |
690 | 678 | return $titles; |
691 | 679 | } |