X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Factions%2FInfoAction.php;h=49a6bb5a5f6f6da1e7c0e7c8f30f2f7eee394ee8;hb=ae031e237eab8e2023d0fe128f9749a8a43ea439;hp=25e4aaeabc1dd51920b6d5a589a46d47e2ca8b4e;hpb=d3ab48b67310aca7589e75f18e492aca2ac66058;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php index 25e4aaeabc..49a6bb5a5f 100644 --- a/includes/actions/InfoAction.php +++ b/includes/actions/InfoAction.php @@ -264,6 +264,12 @@ class InfoAction extends FormlessAction { $this->msg( 'pageinfo-length' ), $lang->formatNum( $title->getLength() ) ]; + // Page namespace + $pageNamespace = $title->getNsText(); + if ( $pageNamespace ) { + $pageInfo['header-basic'][] = [ $this->msg( 'pageinfo-namespace' ), $pageNamespace ]; + } + // Page ID (number not localised, as it's a database ID) $pageInfo['header-basic'][] = [ $this->msg( 'pageinfo-article-id' ), $id ];