saper has uploaded a new change for review.
https://gerrit.wikimedia.org/r/249578
Change subject: Link data points in action=info to themselves
......................................................................
Link data points in action=info to themselves
Bug: T78233
Change-Id: I45f26159164a8d3c3b5b4b4696420d1c09e370c2
---
M includes/actions/InfoAction.php
1 file changed, 5 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/78/249578/1
diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php
index 7389ae2..2b3683c 100644
--- a/includes/actions/InfoAction.php
+++ b/includes/actions/InfoAction.php
@@ -167,9 +167,11 @@
return $table .
Html::rawElement(
'tr',
- $id === null ? array() : array( 'id' => 'mw-' .
$id ),
- Html::rawElement( 'td', array( 'style' =>
'vertical-align: top;' ), $name ) .
- Html::rawElement( 'td', array(), $value
)
+ $id === null ? array() : array( 'id' => 'mw-'.
$id ),
+ Html::rawElement( 'td', array( 'style' =>
'vertical-align: top;' ),
+ $id === null ? $name :
+ Html::rawElement( 'a',
array( 'href' => '#mw-' . $id ), $name ) ) .
+ Html::rawElement( 'td',
array(), $value )
);
}
--
To view, visit https://gerrit.wikimedia.org/r/249578
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I45f26159164a8d3c3b5b4b4696420d1c09e370c2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: saper <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits