Fix string callbacks for special page registration
authorBene <benestar.wikimedia@gmail.com>
Thu, 25 Sep 2014 15:45:51 +0000 (17:45 +0200)
committerBene <benestar.wikimedia@gmail.com>
Thu, 25 Sep 2014 15:49:04 +0000 (17:49 +0200)
commit8c005503e8e1a6544ea8e3095c34a228573b129d
tree78f83ce93d4db20c9a601b4048c6eb0c4b25d5b0
parent1d083a09e59bac941aad21594c79b3b31928f7f7
Fix string callbacks for special page registration

Currently registering a special page with a factory by passing the
callback string does not work because the is_string check comes
before the is_callback check. If we change the order of this if-
clauses we can also support callbacks like 'Factory::createPage'.

Change-Id: I751f97026ed8c580732c74d66b2804dd180ed16f
includes/specialpage/SpecialPageFactory.php