From fa0f56f9ddaa059cdbdbd02afec219ac73d162e5 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 5 Nov 2013 15:34:07 -0800 Subject: [PATCH] Remove stupid one-cell table Change-Id: Ia24c68378385adfd2a5c0bf7b9646bb1edc3d7e4 --- includes/specials/SpecialSearch.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index d5a6b2961f..8c8de8e7dd 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -318,13 +318,12 @@ class SpecialSearch extends SpecialPage { ) ); $out->addHtml( - Xml::openElement( 'table', array( 'id' => 'mw-search-top-table', 'cellpadding' => 0, 'cellspacing' => 0 ) ) . - Xml::openElement( 'tr' ) . - Xml::openElement( 'td' ) . "\n" . + # This is an awful awful ID name. It's not a table, but we + # named it poorly from when this was a table so now we're + # stuck with it + Xml::openElement( 'div', array( 'id' => 'mw-search-top-table' ) ) . $this->shortDialog( $term ) . - Xml::closeElement( 'td' ) . - Xml::closeElement( 'tr' ) . - Xml::closeElement( 'table' ) + Xml::closeElement( 'div' ) ); // Sometimes the search engine knows there are too many hits -- 2.20.1