From b29d09081f765e20594fd5815ee643650b74aaae Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 24 May 2004 03:43:24 +0000 Subject: [PATCH] bug fixes --- maintenance/archives/moveCustomMessages.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/maintenance/archives/moveCustomMessages.inc b/maintenance/archives/moveCustomMessages.inc index cb762f3b7a..85f9bef41e 100644 --- a/maintenance/archives/moveCustomMessages.inc +++ b/maintenance/archives/moveCustomMessages.inc @@ -90,11 +90,10 @@ function moveCustomMessages( $phase ) { $msgRegex = "/{{msg:([$titleChars]*?)}}/"; foreach ( $targets as $partial => $dummy ) { - $dest = Title::makeTitle( NS_TEMPLATE, $partial ); + $dest = Title::makeTitle( NS_MEDIAWIKI, $partial ); $linksTo = $dest->getLinksTo(); foreach( $linksTo as $source ) { $pdbk = $source->getPrefixedDBkey(); - print "$pdbk..."; if ( !array_key_exists( $pdbk, $completedTitles ) ) { $completedTitles[$pdbk] = 1; $id = $source->getArticleID(); @@ -109,11 +108,11 @@ function moveCustomMessages( $phase ) { $text = $parser->unstrip( $text, $stripState ); if ( $text != $row->cur_text ) { wfUpdateArray( 'cur', array( 'cur_text' => $text ), array( 'cur_id' => $id ) ); - print "modified\n"; + print "$pdbk\n"; } else { - print "not modified\n"; + print "($pdbk)\n"; } - } + } } } } -- 2.20.1