Updated mediawiki/extensions Project: mediawiki/extensions/Flow 0de3448fd875498ca8a2bc452b124c803b242a12
Refactor code to allow board creation
Terminology was confusing to say the least: isCreationAllowed not only checked,
but actually marked it as "this one can be created".
However, it did so by making sure isTalkpageOccupied would return true for that
particular title. isTalkpageOccupied should not be used to determine if a board
page can be created, it should only be used to see if it exists!
I've split those up.
The problem with the former solution: isTalkpageOccupied (without checking the
stored content model) is also used to figure out the default content model for
the page. If a page is magically injected in there (the isCreationAllowed hack),
it is considered the default content model & the content model isn't stored to
DB, assuming whatever makes it default to flow_board will pick that up again
Later (e.g. when restoring a deleted page), the isCreationAllowed hack would not
be called, and it could not be recognized as flow_board.