Populate rev_content_model when a move causes default content model to change
authorKunal Mehta <legoktm@gmail.com>
Fri, 24 Jul 2015 22:58:22 +0000 (15:58 -0700)
committerKunal Mehta <legoktm@gmail.com>
Fri, 24 Jul 2015 22:58:22 +0000 (15:58 -0700)
commit0ce88ddfb2a636104896d75e3a5fb932545dff9b
treedc8ed3462553feb6ad8c64c30f7e63fa38a7cac6
parentca56f1fbc32529622cf430fe2ed44347b85e3c24
Populate rev_content_model when a move causes default content model to change

If the default content model changes due to a page move, a NULL in
rev_content_model will now reference the new default, which is not how
the revision was serialized, causing an exception to be thrown.

This was caused by a5bc9f49cd01e, since previously NULL would use the
correct, but techncially inaccurate, page_content_model.

Bug: T105260
Change-Id: I0c29d0e657ad0b656e5da6ba365f337229ad4dfd
includes/MovePage.php