*/
$wgCaptchaRegexes = array();
+/** Register special page */
+global $wgSpecialPages;
+$wgSpecialPages['Captcha'] = array( /*class*/ 'SpecialPage', /*name*/'Captcha', false,
+ /*listed*/ false, /*function*/ false, /*file*/ false );
+
/**
* Set up message strings for captcha utilities.
*/
'captcha-createaccount-fail' =>
"Incorrect or missing confirmation code." ) );
- $wgSpecialPages['Captcha'] = array( /*class*/ 'SpecialPage', /*name*/'Captcha', false,
- /*listed*/ false, /*function*/ false, /*file*/ false );
-
$wgCaptcha = new $wgCaptchaClass();
$wgHooks['EditFilter'][] = array( &$wgCaptcha, 'confirmEdit' );