* complete $wgExtensionCredits
* remove trailing whitespace
This commit is contained in:
parent
7391cd6b2b
commit
5ff9e2927f
|
@ -15,9 +15,10 @@ if( !defined( 'MEDIAWIKI' ) ) {
|
||||||
die( 1 );
|
die( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
$wgExtensionCredits['specialpage'][] = array(
|
$wgExtensionCredits['specialpage'][] = array(
|
||||||
'name' => 'Contact',
|
'name' => 'Contact',
|
||||||
'author' => 'Daniel Kinzler',
|
'version' => '1.1',
|
||||||
|
'author' => 'Daniel Kinzler',
|
||||||
'url' => 'http://mediawiki.org/wiki/Extension:ContactPage',
|
'url' => 'http://mediawiki.org/wiki/Extension:ContactPage',
|
||||||
'description' => 'contact form for visitors',
|
'description' => 'contact form for visitors',
|
||||||
);
|
);
|
||||||
|
@ -42,16 +43,15 @@ function loadContactPageI18n() {
|
||||||
if ( $initialized ) return true;
|
if ( $initialized ) return true;
|
||||||
|
|
||||||
$messages= array();
|
$messages= array();
|
||||||
|
|
||||||
$f= dirname( __FILE__ ) . '/ContactPage.i18n.php';
|
$f= dirname( __FILE__ ) . '/ContactPage.i18n.php';
|
||||||
include( $f );
|
include( $f );
|
||||||
|
|
||||||
$f= dirname( __FILE__ ) . '/ContactPage.i18n.' . $wgLang->getCode() . '.php';
|
$f= dirname( __FILE__ ) . '/ContactPage.i18n.' . $wgLang->getCode() . '.php';
|
||||||
if ( file_exists( $f ) ) include( $f );
|
if ( file_exists( $f ) ) include( $f );
|
||||||
|
|
||||||
$initialized = true;
|
$initialized = true;
|
||||||
$wgMessageCache->addMessages( $messages );
|
$wgMessageCache->addMessages( $messages );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue