Use PHP's built-in class_exists instead of MWInit::classExists

MWInit::classExists is deprecated as of 1.22 in favor of the
class_exists PHP built-in.

Change-Id: Ia51ac62c10c8191f00232f709d4d4df295583354
This commit is contained in:
Kunal Mehta 2013-07-24 00:59:13 -07:00
parent cdea59a039
commit 2f605185fd

View file

@ -39,7 +39,7 @@ class MathCaptcha extends SimpleCaptcha {
/** Fetch the math */
function fetchMath( $sum ) {
if ( MWInit::classExists( 'MathRenderer' ) ) {
if ( class_exists( 'MathRenderer' ) ) {
$math = MathRenderer::getRenderer( $sum, array(), MW_MATH_PNG );
} else {
throw new MWException( 'MathCaptcha requires the Math extension for MediaWiki versions 1.18 and above.' );