From 3421937224ce63f602a89fb1cbae5b0bd90ba683 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 15 Jan 2006 07:04:28 +0000 Subject: [PATCH] * (bug 4482) Include move comment on the null edit as well as the redirect --- RELEASE-NOTES | 1 + includes/Title.php | 8 ++------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b51faacdc7..c0cbe8e14b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -498,6 +498,7 @@ fully support the editing toolbar, but was found to be too confusing. * Added an attractive space on the namespace selector on contribs * Move PHP 5-friendly XHTML doctype hack to Sanitizer, use for sig checks. Fixes use of named entities in sigs on PHP 5 +* (bug 4482) Include move comment on the null edit as well as the redirect === Caveats === diff --git a/includes/Title.php b/includes/Title.php index 33d7ef3f98..c88e062c5c 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1676,9 +1676,7 @@ class Title { $dbw->delete( 'page', array( 'page_id' => $newid ), $fname ); # Save a null revision in the page's history notifying of the move - $nullRevision = Revision::newNullRevision( $dbw, $oldid, - wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ), - true ); + $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true ); $nullRevId = $nullRevision->insertOn( $dbw ); # Change the name of the target page: @@ -1750,9 +1748,7 @@ class Title { $linkCache =& LinkCache::singleton(); # Save a null revision in the page's history notifying of the move - $nullRevision = Revision::newNullRevision( $dbw, $oldid, - wfMsgForContent( '1movedto2', $this->getPrefixedText(), $nt->getPrefixedText() ), - true ); + $nullRevision = Revision::newNullRevision( $dbw, $oldid, $comment, true ); $nullRevId = $nullRevision->insertOn( $dbw ); # Rename cur entry -- 2.20.1