(bug 31179) Fixed problems with undeletion making bad page rows:
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 4 Oct 2011 21:31:31 +0000 (21:31 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 4 Oct 2011 21:31:31 +0000 (21:31 +0000)
commitf1a45c3436c4845a012e1d31517024846d41400e
tree01aaa338b425879786c2657b15347ec8a8bfca28
parent8fa9ddf642f69044990ef04cef60267bd53ad344
(bug 31179) Fixed problems with undeletion making bad page rows:
* Moved up isCountable() call, since insertOn() sets the page ID, it safer to do this call first. It now uses master DB data, as it should for reads to write data. Furthermore, calling it after insertOn() was triggered loadPageData() on a slave, breaking the page ID cache just set in insertOn().
* Preemptively call loadPageData( 'fromdbmaster' ) as Article::doEdit() does (r98880) to avoid any lazy loading from the slave which can corrupt the page ID cache.
includes/specials/SpecialUndelete.php