From 9cbdfeb409eb9943d4c48f9c8a7369b8bac58469 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Mon, 23 Mar 2009 21:20:05 +0000 Subject: [PATCH] Add a class to the table and use a nice Xml::function Wrap text of intro in a div with own class --- includes/specials/SpecialTags.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/includes/specials/SpecialTags.php b/includes/specials/SpecialTags.php index 0fb48bb6c0..4f4e94f2c1 100644 --- a/includes/specials/SpecialTags.php +++ b/includes/specials/SpecialTags.php @@ -13,10 +13,10 @@ class SpecialTags extends SpecialPage { global $wgOut, $wgUser, $wgMessageCache; $wgMessageCache->loadAllMessages(); - + $sk = $wgUser->getSkin(); $wgOut->setPageTitle( wfMsg( 'tags-title' ) ); - $wgOut->addWikiMsg( 'tags-intro' ); + $wgOut->wrapWikiMsg( "
\n$1
", 'tags-intro' ); // Write the headers $html = ''; @@ -36,9 +36,7 @@ class SpecialTags extends SpecialPage { $html .= $this->doTagRow( $tag, 0 ); } - $html = "$html
"; - - $wgOut->addHTML( $html ); + $wgOut->addHTML( Xml::tags( 'table', array( 'style' => 'width: 80%', 'class' => 'mw-tags-table' ), $html ) ); } function doTagRow( $tag, $hitcount ) { -- 2.20.1