$classes[] = 'new';
$query = 'action=edit';
}
+
+ $text = wfMsg( $message );
+ if ( $text == "<$message>" ) {
+ $text = wfMsg( 'nstab-main' );
+ }
+
return array(
'class' => implode( ' ', $classes ),
- 'text' => wfMsg( $message ),
+ 'text' => $text,
'href' => $title->getLocalUrl( $query ) );
}
case NS_CATEGORY_TALK:
return 'nstab-category';
default:
- return 'nstab-main';
+ return 'nstab-' . strtolower( $this->mTitle->getNsText() );
}
}