r17544 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17543‎ | r17544 | r17545 >
Date:19:26, 11 November 2006
Author:mkroetzsch
Status:old
Tags:
Comment:
removed debugging output
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/SMW_InlineQueries.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/SMW_InlineQueries.php
@@ -621,10 +621,6 @@
622622 if (!$smwgIQRedirectNormalization) {
623623 return $titles;
624624 }
625 -
626 - print "STARTING NORMALIZATION FOR:<br />\n";
627 - foreach ($titles as $title) print "+ " . $title->getPrefixedText();
628 - print "<br />\n";
629625
630626 $stable = 0;
631627 $check_titles = array_diff( $titles , array() ); // Copies the array
@@ -633,8 +629,6 @@
634630 $new_titles = array();
635631 foreach ( $check_titles as $title ) {
636632 // there...
637 -
638 - print "1 ";
639633 if ( 0 != $title->getArticleID() ) {
640634 $res = $this->dbr->select(
641635 array( 'page' , 'pagelinks' ),
@@ -651,15 +645,12 @@
652646 if (!array_key_exists( $id , $titles)) {
653647 $titles[$id] = $new_title;
654648 $new_titles[] = $new_title;
655 - print "+ " . $new_title->getPrefixedText() . "(" . $new_title->getArticleID() . ") ";
656649 }
657650 }
658651 }
659652 $this->dbr->freeResult( $res );
660653 }
661654
662 - print "<br />\n";
663 - print "2 ";
664655 // ... and back again
665656 $res = $this->dbr->select(
666657 array( 'page' , 'pagelinks' ),
@@ -674,7 +665,6 @@
675666 if (!array_key_exists( $row['page_id'] , $titles)) {
676667 $titles[$row['page_id']] = $new_title;
677668 $new_titles[] = $new_title;
678 - print "+ " . $new_title->getPrefixedText() . "(" . $new_title->getArticleID() . ") ";
679669 }
680670 }
681671 $this->dbr->freeResult( $res );
@@ -683,8 +673,6 @@
684674 $stable= 500; // stop
685675 else
686676 $check_titles = array_diff( $new_titles , array() );
687 -// foreach ($new_titles as $title) print "+ " . $title->getPrefixedText();
688 - print "<br />\n";
689677 }
690678 return $titles;
691679 }

Status & tagging log