Revert r66934 (Removing wfLoadExtensionMessages() from everything). I disagree on...
[toast/cookiecaptcha.git] / ConfirmEdit_body.php
index c1503b8fbfb1b5986654f5a40a90073a7ed8a5e3..291fb83d1b7e8a38d5d80d5e728cc3f56d3907c2 100644 (file)
@@ -6,6 +6,10 @@ class ConfirmEditHooks {
                static $done = false;
                if ( !$done ) {
                        $done = true;
+                       wfLoadExtensionMessages( 'ConfirmEdit' );
+                       if ( isset( $wgExtensionMessagesFiles[$wgCaptchaClass] ) ) {
+                               wfLoadExtensionMessages( $wgCaptchaClass );
+                       }
                        $wgCaptcha = new $wgCaptchaClass;
                }
                return $wgCaptcha;