dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add namespace to action=info page"
[lhc/web/wiklou.git]
/
includes
/
actions
/
InfoAction.php
diff --git
a/includes/actions/InfoAction.php
b/includes/actions/InfoAction.php
index
d014503
..
49a6bb5
100644
(file)
--- a/
includes/actions/InfoAction.php
+++ b/
includes/actions/InfoAction.php
@@
-174,7
+174,7
@@
class InfoAction extends FormlessAction {
* @param string $table The table that will be added to the content
* @param string $name The name of the row
* @param string $value The value of the row
* @param string $table The table that will be added to the content
* @param string $name The name of the row
* @param string $value The value of the row
- * @param string $id The ID to use for the 'tr' element
+ * @param string
|null
$id The ID to use for the 'tr' element
* @return string The table with the row added
*/
protected function addRow( $table, $name, $value, $id ) {
* @return string The table with the row added
*/
protected function addRow( $table, $name, $value, $id ) {
@@
-264,6
+264,12
@@
class InfoAction extends FormlessAction {
$this->msg( 'pageinfo-length' ), $lang->formatNum( $title->getLength() )
];
$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 ];
// Page ID (number not localised, as it's a database ID)
$pageInfo['header-basic'][] = [ $this->msg( 'pageinfo-article-id' ), $id ];