From 304b7a8009624978170be19b1b5f63e9cfcd0916 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 14 Sep 2012 09:29:22 +0200 Subject: [PATCH] (bug 40214) Category pages no longer use deprecated "width" HTML attribute Change-Id: Ie1a4a1ca81874cd2ffd1012bf6468a69729e3a62 --- RELEASE-NOTES-1.20 | 1 + includes/CategoryViewer.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES-1.20 b/RELEASE-NOTES-1.20 index 6f0da7e46a..e2e46f64cd 100644 --- a/RELEASE-NOTES-1.20 +++ b/RELEASE-NOTES-1.20 @@ -243,6 +243,7 @@ upgrade PHP if you have not done so prior to upgrading MediaWiki. * (bug 39635) PostgreSQL LOCK IN SHARE MODE option is a syntax error. * (bug 36329) Accesskey tooltips for Firefox 14 on Mac should use "ctrl-option-" prefix. * (bug 32552) Drop unused database field cat_hidden from table category. +* (bug 40214) Category pages no longer use deprecated "width" HTML attribute. === API changes in 1.20 === * (bug 34316) Add ability to retrieve maximum upload size from MediaWiki API. diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 5f4aaeaa01..3bb2bc9b1c 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -504,11 +504,11 @@ class CategoryViewer extends ContextSource { # Split into three columns $columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ ); - $ret = ''; + $ret = '
'; $prevchar = null; foreach ( $columns as $column ) { - $ret .= '
'; + $ret .= ''; $colContents = array(); # Kind of like array_flip() here, but we keep duplicates in an -- 2.20.1