wfProfileOut( $fname.'-BlockCache' );
wfProfileIn( $fname.'-User' );
+# Extension setup functions
+# Entries should be added to this variable during the inclusion
+# of the extension file. This allows the extension to perform
+# any necessary initialisation in the fully initialised environment
+foreach ( $wgSkinExtensionFunctions as $func ) {
+ $func();
+}
+
if( $wgCommandLineMode ) {
# Used for some maintenance scripts; user session cookies can screw things up
# when the database is in an in-between state.
} else {
$checked = "";
}
+ if ( isset( $skinNames[$skinkey] ) ) {
+ $sn = $skinNames[$skinkey];
+ } else {
+ $sn = $skinname;
+ }
$wgOut->addHTML( "<div><label><input type='radio' name=\"wpSkin\"
- value=\"$skinkey\"$checked /> {$skinNames[$skinkey]}</label></div>\n" );
+ value=\"$skinkey\"$checked /> {$sn}</label></div>\n" );
}
$wgOut->addHTML( "</fieldset>\n\n" );