X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FCategoryViewer.php;h=3d66b74a26a209e0be011b6f928dbd478159c4b0;hb=406bb1ef32e15410554866e0ec13f50955f0863f;hp=5f4aaeaa0159861e3d47eb606e54415b5e0f3523;hpb=b0cb8e159236e8e57edcc36f0f1dfb303a5acf11;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 5f4aaeaa01..3d66b74a26 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 @@ -613,6 +613,7 @@ class CategoryViewer extends ContextSource { * * @param Title $title: The title (usually $this->title) * @param String $section: Which section + * @throws MWException * @return Title */ private function addFragmentToTitle( $title, $section ) {