Index: trunk/phase3/includes/Article.php |
— | — | @@ -1885,6 +1885,7 @@ |
1886 | 1886 | $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true ); |
1887 | 1887 | $nullRevId = $nullRevision->insertOn( $dbw ); |
1888 | 1888 | |
| 1889 | + $latest = $this->getLatest(); |
1889 | 1890 | # Update page record |
1890 | 1891 | $dbw->update( 'page', |
1891 | 1892 | array( /* SET */ |
— | — | @@ -1896,7 +1897,7 @@ |
1897 | 1898 | ), 'Article::protect' |
1898 | 1899 | ); |
1899 | 1900 | |
1900 | | - wfRunHooks( 'NewRevisionFromEditComplete', array($this, $nullRevision, false) ); |
| 1901 | + wfRunHooks( 'NewRevisionFromEditComplete', array($this, $nullRevision, $latest) ); |
1901 | 1902 | wfRunHooks( 'ArticleProtectComplete', array( &$this, &$wgUser, $limit, $reason ) ); |
1902 | 1903 | |
1903 | 1904 | # Update the protection log |