http://www.mediawiki.org/wiki/Special:Code/MediaWiki/92013
Revision: 92013 Author: yaron Date: 2011-07-12 21:59:01 +0000 (Tue, 12 Jul 2011) Log Message: ----------- Follow-up to r86811: changed MWInit::classExists() to class_exists() - the former is only defined in MW >= 1.18, which goes against the whole point of the call Modified Paths: -------------- trunk/extensions/ConfirmEdit/MathCaptcha.class.php Modified: trunk/extensions/ConfirmEdit/MathCaptcha.class.php =================================================================== --- trunk/extensions/ConfirmEdit/MathCaptcha.class.php 2011-07-12 21:58:23 UTC (rev 92012) +++ trunk/extensions/ConfirmEdit/MathCaptcha.class.php 2011-07-12 21:59:01 UTC (rev 92013) @@ -39,7 +39,7 @@ /** Fetch the math */ function fetchMath( $sum ) { - if( MWInit::classExists( 'MathRenderer' ) ){ + if ( class_exists( 'MathRenderer' ) ){ $math = new MathRenderer( $sum ); } else { throw new MWException( 'MathCaptcha requires the Math extension for MediaWiki versions 1.18 and above.' ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs