* (bug 13891) Show categories box even if all categories are hidden and user has
"show hidden categories" option on
* (bug 13915) Undefined variable $wltsfield in includes/SpecialWatchlist.php
+* (bug 13913) Special:Whatlinkshere now has correct HTML markup
=== API changes in 1.13 ===
foreach ( $rows as $row ) {
$nt = Title::makeTitle( $row->page_namespace, $row->page_title );
- $wgOut->addHTML( $this->listItem( $row, $nt ) );
-
if ( $row->page_is_redirect && $level < 2 ) {
+ $wgOut->addHTML( $this->listItem( $row, $nt, true ) );
$this->showIndirectLinks( $level + 1, $nt, $wgMaxRedirectLinksRetrieved );
+ $wgOut->addHTML( Xml::closeElement( 'li' ) );
+ } else {
+ $wgOut->addHTML( $this->listItem( $row, $nt ) );
}
}
return Xml::openElement( 'ul' );
}
- protected function listItem( $row, $nt ) {
+ protected function listItem( $row, $nt, $notClose = false ) {
# local message cache
static $msgcache = null;
if ( $msgcache === null ) {
$wlhLink = $this->wlhLink( $nt, $msgcache['whatlinkshere-links'] );
$wlh = Xml::wrapClass( "($wlhLink)", 'mw-whatlinkshere-tools' );
- return Xml::tags( 'li', null, "$link $propsText $wlh" ) . "\n";
+ return $notClose ?
+ Xml::openElement( 'li' ) . "$link $propsText $wlh\n" :
+ Xml::tags( 'li', null, "$link $propsText $wlh" ) . "\n";
}
protected function listEnd() {