Revert 15644; extensions need to remain self-contained

This commit is contained in:
Brion Vibber 2006-07-16 21:43:23 +00:00
parent 788769ecbc
commit 2f8c433911

View file

@ -34,9 +34,6 @@ global $wgExtensionFunctions, $wgGroupPermissions;
$wgExtensionFunctions[] = 'ceSetup';
# Internationalisation file
if ( !function_exists( 'extAddMessages' ) ) {
require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
}
require_once( 'ConfirmEdit.i18n.php' );
/**
@ -110,8 +107,10 @@ $wgSpecialPages['Captcha'] = array( /*class*/ 'SpecialPage', /*name*/'Captcha',
*/
function ceSetup() {
# Add messages
global $wgConfirmEditMessages;
extAddMessages( $wgConfirmEditMessages );
global $wgMessageCache, $wgConfirmEditMessages;
foreach( $wgConfirmEditMessages as $key => $value ) {
$wgMessageCache->addMessages( $wgConfirmEditMessages[$key], $key );
}
global $wgHooks, $wgCaptcha, $wgCaptchaClass, $wgSpecialPages;
$wgCaptcha = new $wgCaptchaClass();