From: Tim Starling Date: Mon, 24 May 2004 03:43:24 +0000 (+0000) Subject: bug fixes X-Git-Tag: 1.5.0alpha1~3214 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=b29d09081f765e20594fd5815ee643650b74aaae;p=lhc%2Fweb%2Fwiklou.git bug fixes --- 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"; } - } + } } } }