From: umherirrender Date: Sat, 1 Dec 2012 21:38:04 +0000 (+0100) Subject: Show comment not as block in tables X-Git-Tag: 1.31.0-rc.0~21451^2 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=b8049b6915c7a0f47bee40d396787e4dfdbb91b2;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }