Revert "If rev_content_model is null, use page_content_model."
authorLegoktm <legoktm.wikipedia@gmail.com>
Sun, 10 Jul 2016 22:58:36 +0000 (22:58 +0000)
committerLegoktm <legoktm.wikipedia@gmail.com>
Sun, 10 Jul 2016 22:58:36 +0000 (22:58 +0000)
commitc9021e17639ad091e282dc939a64e6602d8ddb60
tree166eab532c256596b6108efb20310cfdd7437bd9
parent9a6ff0bd82faafbf9746a6fa3ed33f42092587c3
Revert "If rev_content_model is null, use page_content_model."

This patch effectively reverted a5bc9f49cd01e49c, which
was the correct behavior. If a page were to have its content
model changed, the NULL revision rows would now be interpreted
as the page's new content model instead of the default content
model (which they should be).

This reverts commit 9a6ff0bd82faafbf9746a6fa3ed33f42092587c3.

Change-Id: I6801d09bd847f477222e503b912005b02a9df045
includes/Revision.php
tests/phpunit/includes/RevisionStorageTest.php