mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Editcount
synced 2024-12-18 19:11:32 +00:00
Merge "Fix empty label on undeployed namespaces"
This commit is contained in:
commit
9f36c436ee
|
@ -79,7 +79,11 @@ class EditcountHTML extends Editcount {
|
||||||
|
|
||||||
foreach ( $this->nscount as $ns => $edits ) {
|
foreach ( $this->nscount as $ns => $edits ) {
|
||||||
$fedits = $lang->formatNum( $edits );
|
$fedits = $lang->formatNum( $edits );
|
||||||
$fns = ( $ns == NS_MAIN ) ? $this->msg( 'blanknamespace' ) : $lang->getFormattedNsText( $ns );
|
if ( $ns === NS_MAIN ) {
|
||||||
|
$fns = $this->msg( 'blanknamespace' );
|
||||||
|
} else {
|
||||||
|
$fns = $lang->getFormattedNsText( $ns ) ?: $ns;
|
||||||
|
}
|
||||||
$percent = wfPercent( $edits / $this->total * 100 );
|
$percent = wfPercent( $edits / $this->total * 100 );
|
||||||
$fpercent = $lang->formatNum( $percent );
|
$fpercent = $lang->formatNum( $percent );
|
||||||
$ret .= "
|
$ret .= "
|
||||||
|
|
Loading…
Reference in a new issue