Show comment not as block in tables
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 1 Dec 2012 21:38:04 +0000 (22:38 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 1 Dec 2012 21:38:04 +0000 (22:38 +0100)
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
includes/specials/SpecialListfiles.php

index faaab72..d740082 100644 (file)
@@ -329,7 +329,7 @@ class BlockListPager extends TablePager {
                                break;
 
                        case 'ipb_reason':
-                               $formatted = Linker::commentBlock( $value );
+                               $formatted = Linker::formatComment( $value );
                                break;
 
                        case 'ipb_params':
index cc05522..d459ac6 100644 (file)
@@ -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;
                }