(Bug 41574) Supply Title object to Revision if possible.
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 1 Nov 2012 12:48:18 +0000 (13:48 +0100)
committerdaniel <daniel.kinzler@wikimedia.de>
Thu, 1 Nov 2012 12:48:18 +0000 (13:48 +0100)
commitb5b2b2f89860e85c75757007cce5324262b0473d
tree452fa4f26c23deb9042381138a519669d9b2e672
parent63fa9df088280df300e43bf691bf823e32d8c151
(Bug 41574) Supply Title object to Revision if possible.

The Revision object needs the Title to determine the default content model.
Providing the Title explicitely wherever possible avoids an extra database
lookup. Most importanlty, this fixes fatal errors that ocurr when the
database lookup fails due to slave lag or transaction state.

Change-Id: I516e82f7a893b274c513b128b8a46db491160b55
includes/ChangesList.php
includes/Import.php
includes/Revision.php
includes/Title.php
includes/WikiPage.php
includes/specials/SpecialDeletedContributions.php
includes/specials/SpecialMergeHistory.php
tests/phpunit/includes/WikiPageTest.php