Yurik has uploaded a new change for review.
https://gerrit.wikimedia.org/r/284265
Change subject: Fixed incorrect type label
......................................................................
Fixed incorrect type label
Change-Id: Ib6be96d3717bed43bd70589e1dc4b342ea3d5e0f
---
M includes/JCTabularContentView.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/JsonConfig
refs/changes/65/284265/1
diff --git a/includes/JCTabularContentView.php
b/includes/JCTabularContentView.php
index ca6d840..8c10acd 100644
--- a/includes/JCTabularContentView.php
+++ b/includes/JCTabularContentView.php
@@ -56,7 +56,9 @@
$index = 0;
foreach ( $headers as $column ) {
list( $column, $columnAttrs ) = self::split(
$column );
- $type = $types && array_key_exists( $index,
$types ) ? $types[$index] : 'invalid';
+ $type = ( ( $types && array_key_exists( $index,
$types ) )
+ ? $types[$index] : false )
+ ? : 'invalid';
$typeClass = $infoClass;
$typeClass['title'] = wfMessage(
'jsonconfig-type-name-' . $type )->plain();
$typeAbbr = wfMessage( 'jsonconfig-type-abbr-'
. $type )->plain();
--
To view, visit https://gerrit.wikimedia.org/r/284265
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib6be96d3717bed43bd70589e1dc4b342ea3d5e0f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/JsonConfig
Gerrit-Branch: master
Gerrit-Owner: Yurik <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits