leucosticte has uploaded a new change for review. https://gerrit.wikimedia.org/r/150864
Change subject: Store the page_id of the moved page in log_params Currently, as noted in bug 57084, log_page contains the page_id of the redirect that is created when a page is moved, or it contains 0 when no redirect is created. This change stores the page_id of the mov ...................................................................... Store the page_id of the moved page in log_params Currently, as noted in bug 57084, log_page contains the page_id of the redirect that is created when a page is moved, or it contains 0 when no redirect is created. This change stores the page_id of the moved page in log_params. Bug: 68930 Change-Id: I490512393ae85802c2f4ebe32e1eb9a5903ccd07 --- M includes/Title.php 1 file changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/64/150864/1 diff --git a/includes/Title.php b/includes/Title.php index ab55257..74cc366 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3887,6 +3887,8 @@ $redirectContent = null; } + $oldid = $this->getArticleID(); + $logEntry = new ManualLogEntry( 'move', $logType ); $logEntry->setPerformer( $wgUser ); $logEntry->setTarget( $this ); @@ -3894,6 +3896,7 @@ $logEntry->setParameters( array( '4::target' => $nt->getPrefixedText(), '5::noredir' => $redirectContent ? '0': '1', + '6::pageid' => $oldid ) ); $formatter = LogFormatter::newFromEntry( $logEntry ); @@ -3904,8 +3907,6 @@ } # Truncate for whole multibyte characters. $comment = $wgContLang->truncate( $comment, 255 ); - - $oldid = $this->getArticleID(); $dbw = wfGetDB( DB_MASTER ); -- To view, visit https://gerrit.wikimedia.org/r/150864 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I490512393ae85802c2f4ebe32e1eb9a5903ccd07 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: leucosticte <nathanlarson3...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits