(Big 41436) Make sure Revision knows page Title.
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 29 Oct 2012 15:21:27 +0000 (16:21 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 29 Oct 2012 15:31:16 +0000 (16:31 +0100)
commit8498a4f575412e8a75139b036627e4dc39c659f8
tree614b2350d95042d233e4b3d5172e248256988fdb
parentcc183225599962543f8005b9eb95198e286c137c
(Big 41436) Make sure Revision knows page Title.

With $wgContentHandlerUseDB, Revision needs access to the page's Title
object to determin the page's default content model. This apparently
failed in production for newly created pages (supposedly because of
some complication with database transactions or master/client setup).

This change makes WikiPage::doEditContent pass the Title object
directly to the Revision to avoid any database issues. This also
gets rid of a pointless database read.

Change-Id: I9db228c3fcda0f8dfe52be1659014a6e4b4775af
includes/Revision.php
includes/WikiPage.php