jenkins-bot has submitted this change and it was merged.

Change subject: Show "no description" in italic grey also for deprecated 
parameters
......................................................................


Show "no description" in italic grey also for deprecated parameters

Timo Tijhof's initial commit b7080c5f9085030d8796c3ba0d5c4b2262781875
inexplicably caused the "mw-templatedata-doc-muted" class to be added
to the description field only when $paramObj->deprecated was false.

Bug: T69794
Change-Id: Iad86f5dbc48046faa09f39c339fce95db3331208
---
M TemplateDataBlob.php
1 file changed, 1 insertion(+), 3 deletions(-)

Approvals:
  Mooeypoo: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/TemplateDataBlob.php b/TemplateDataBlob.php
index 54cdc4d..cceb7f7 100644
--- a/TemplateDataBlob.php
+++ b/TemplateDataBlob.php
@@ -725,9 +725,7 @@
                        // Description
                        . Html::element( 'td', array(
                                        'class' => array(
-                                               'mw-templatedata-doc-muted' => (
-                                                       $paramObj->description 
=== null && $paramObj->deprecated === false
-                                               )
+                                               'mw-templatedata-doc-muted' => 
( $paramObj->description === null )
                                        )
                                ),
                                $paramObj->description !== null ?

-- 
To view, visit https://gerrit.wikimedia.org/r/184440
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iad86f5dbc48046faa09f39c339fce95db3331208
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/TemplateData
Gerrit-Branch: master
Gerrit-Owner: Ricordisamoa <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Mooeypoo <[email protected]>
Gerrit-Reviewer: Ricordisamoa <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to