/**
* The main skin class which provides methods and properties for all other skins.
- * This base class is also the "Standard" skin.
*
* See docs/skin.txt for more information.
*
* @ingroup Skins
*/
abstract class Skin extends ContextSource {
- protected $skinname = 'standard';
+ protected $skinname = null;
protected $mRelevantTitle = null;
protected $mRelevantUser = null;
static function getSkinNameMessages() {
$messages = array();
foreach ( self::getSkinNames() as $skinKey => $skinName ) {
- // Messages: skinname-cologneblue, skinname-monobook, skinname-modern, skinname-vector
+ // Messages: skinname-vector, skinname-monobook
$messages[] = "skinname-$skinKey";
}
return $messages;
/**
* Normalize a skin preference value to a form that can be loaded.
* If a skin can't be found, it will fall back to the configured
- * default (or the old 'Classic' skin if that's broken).
- * @param string $key 'monobook', 'standard', etc.
+ * default, or the hardcoded default if that's broken.
+ * @param string $key 'monobook', 'vector', etc.
* @return string
*/
static function normalizeKey( $key ) {
/**
* Factory method for loading a skin of a given type
- * @param string $key 'monobook', 'standard', etc.
+ * @param string $key 'monobook', 'vector', etc.
* @return Skin
*/
static function &newFromKey( $key ) {
* @return string
*/
function subPageSubtitle() {
- global $wgLang;
$out = $this->getOutput();
$subpages = '';
$c = 0;
$growinglink = '';
$display = '';
+ $lang = $this->getLanguage();
foreach ( $links as $link ) {
$growinglink .= $link;
$c++;
if ( $c > 1 ) {
- $subpages .= $wgLang->getDirMarkEntity() . $this->msg( 'pipe-separator' )->escaped();
+ $subpages .= $lang->getDirMarkEntity() . $this->msg( 'pipe-separator' )->escaped();
} else {
$subpages .= '< ';
}