From b8049b6915c7a0f47bee40d396787e4dfdbb91b2 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 1 Dec 2012 22:38:04 +0100 Subject: [PATCH] Show comment not as block in tables Special:BlockList and Special:ListFiles showing comments inside a table cell. In that case the parentheses not needed, because the table cell splits it from the rest. Using the Linker method, which does not produce the parentheses. The file history of an file pages does this the same way. Change-Id: I7fbb068bd2acd90f8117719706c32ca05b27b09f --- includes/specials/SpecialBlockList.php | 2 +- includes/specials/SpecialListfiles.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialBlockList.php b/includes/specials/SpecialBlockList.php index faaab72d4b..d740082f4c 100644 --- a/includes/specials/SpecialBlockList.php +++ b/includes/specials/SpecialBlockList.php @@ -329,7 +329,7 @@ class BlockListPager extends TablePager { break; case 'ipb_reason': - $formatted = Linker::commentBlock( $value ); + $formatted = Linker::formatComment( $value ); break; case 'ipb_params': diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index cc05522124..d459ac663c 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -223,7 +223,7 @@ class ImageListPager extends TablePager { case 'img_size': return htmlspecialchars( $this->getLanguage()->formatSize( $value ) ); case 'img_description': - return Linker::commentBlock( $value ); + return Linker::formatComment( $value ); case 'count': return intval( $value ) + 1; } -- 2.20.1