diff options
Diffstat (limited to 'extensions/ConfirmEdit/MathCaptcha.php')
-rw-r--r-- | extensions/ConfirmEdit/MathCaptcha.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/extensions/ConfirmEdit/MathCaptcha.php b/extensions/ConfirmEdit/MathCaptcha.php index 8c815bf7..d1eb44ef 100644 --- a/extensions/ConfirmEdit/MathCaptcha.php +++ b/extensions/ConfirmEdit/MathCaptcha.php @@ -15,7 +15,8 @@ if ( !defined( 'MEDIAWIKI' ) ) { exit; } -require_once dirname( __FILE__ ) . '/ConfirmEdit.php'; +$dir = __DIR__; +require_once $dir . '/ConfirmEdit.php'; $wgCaptchaClass = 'MathCaptcha'; -$wgAutoloadClasses['MathCaptcha'] = dirname( __FILE__ ) . '/MathCaptcha.class.php'; +$wgAutoloadClasses['MathCaptcha'] = $dir . '/MathCaptcha.class.php'; |