(bug 28887) Do not re-use special page objects.
authorBrian Wolff <bawolff@users.mediawiki.org>
Mon, 9 May 2011 23:27:47 +0000 (23:27 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Mon, 9 May 2011 23:27:47 +0000 (23:27 +0000)
commit73f56330402ce60e0db26a1fbdd9fa82df96df57
tree0e78341efdf33658529f728e2e8886f526107d83
parenta05d18de5f59ea45a1f460c904fe422883740319
(bug 28887) Do not re-use special page objects.

This causes bugs where if you do
{{special:recentchanges/3}} and {{special:recentchanges/15}} the first one is used for both
since the property is stored in a member variable of the class, which is then saved.

MediaWiki seems to have reused the special page classes since forever. I'm not sure why.
I can't imagine anyone relying on this behaviour, and it seems rather unexpected behaviour.
RELEASE-NOTES-1.19
includes/SpecialPageFactory.php