* (bug 4482) Include move comment on the null edit as well as the redirect
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 15 Jan 2006 07:04:28 +0000 (07:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 15 Jan 2006 07:04:28 +0000 (07:04 +0000)
RELEASE-NOTES
includes/Title.php

index b51faac..c0cbe8e 100644 (file)
@@ -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 ===
index 33d7ef3..c88e062 100644 (file)
@@ -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