Fix WikiPage::prepareContentForEdit's default format handling
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 13 Dec 2013 17:15:39 +0000 (12:15 -0500)
committerOri.livneh <ori@wikimedia.org>
Fri, 13 Dec 2013 20:10:22 +0000 (20:10 +0000)
commitcc95e09519323f91af4cd33b56c9bbdcc8d142b8
treede040c8dbedb5f04cdbb3ee33e3d20148195ff5a
parentf9c6af781cc5af03e9a6395a701322f67bc6e803
Fix WikiPage::prepareContentForEdit's default format handling

If some caller passes null for the $serialization_format parameter,
they're going to break the in-memory caching of the prepared edit even
though it's likely that the format being used is the same as the format
being used by everything else.

It seems sensible to cache null as the default format for the content
object to avoid this.

Bug: 57026
Change-Id: I4ddcf6e388636e6a6397b664b8683ad774a09a04
includes/WikiPage.php