mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
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:
parent
cdea59a039
commit
2f605185fd
|
@ -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.' );
|
||||
|
|
Loading…
Reference in a new issue