Move wfCreateObject to MWFunction::newObj. This uses the ReflectionClass to
authorX! <soxred93@users.mediawiki.org>
Mon, 3 Jan 2011 02:10:05 +0000 (02:10 +0000)
committerX! <soxred93@users.mediawiki.org>
Mon, 3 Jan 2011 02:10:05 +0000 (02:10 +0000)
commit1d0ac4a4812c5778c4e0c56f068d7d2b7ed24a46
tree9bfb797c82ac894e32fb232ad99f8a3ad0f5d3aa
parent56163528c8b7841a3f0ae33ba04d3244b922d529
Move wfCreateObject to MWFunction::newObj. This uses the ReflectionClass to
instantiate a variable-length constructor in php 5.1.3 and up, and falls
back to the old, ugly, manual method that was in the old wfCreateObject
function. The instances in the core have been replaced.
includes/GlobalFunctions.php
includes/MWFunction.php
includes/SpecialPage.php
includes/StubObject.php
tests/phpunit/includes/MWFunctionTest.php