$r = wfMsgExt( 'category-empty', array( 'parse' ) );
}
- $lang = $this->getLang();
+ $lang = $this->getLanguage();
$langAttribs = array( 'lang' => $lang->getCode(), 'dir' => $lang->getDir() );
# put a div around the headings which are in the user language
$r = Html::openElement( 'div', $langAttribs ) . $r . '</div>';
* @deprecated since 1.17 kept for compatibility, please use addSubcategoryObject instead
*/
function addSubcategory( Title $title, $sortkey, $pageLength ) {
+ wfDeprecated( __METHOD__, '1.17' );
$this->addSubcategoryObject( Category::newFromTitle( $title ), $sortkey, $pageLength );
}
# Split into three columns
$columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ );
- $ret = '<table width="100%"><tr valign="top"><td>';
+ $ret = '<table width="100%"><tr valign="top">';
$prevchar = null;
foreach ( $columns as $column ) {
+ $ret .= '<td width="33.3%">';
$colContents = array();
# Kind of like array_flip() here, but we keep duplicates in an
$prevchar = $char;
}
- $ret .= "</td>\n<td>";
+ $ret .= "</td>\n";
}
- $ret .= '</td></tr></table>';
+ $ret .= '</tr></table>';
return $ret;
}