Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | | - * Sets the list to use a <div class="watchlist-(namespace)-(page)"> tag |
| 59 | + * Sets the list to use a <li class="watchlist-(namespace)-(page)"> tag |
60 | 60 | * @param bool $value |
61 | 61 | */ |
62 | 62 | public function setWatchlistDivs( $value = true ) { |
— | — | @@ -458,17 +458,13 @@ |
459 | 459 | } |
460 | 460 | |
461 | 461 | if( $this->watchlist ) { |
462 | | - $watchlist_start = Xml::openElement( 'div', array( 'class' => Sanitizer::escapeClass( 'watchlist-'.$rc->mAttribs['rc_namespace'].'-'.$rc->mAttribs['rc_title'] ) ) ); |
463 | | - $watchlist_end = Xml::closeElement( 'div' ); |
| 462 | + $classes[] = Sanitizer::escapeClass( 'watchlist-'.$rc->mAttribs['rc_namespace'].'-'.$rc->mAttribs['rc_title'] ); |
464 | 463 | } |
465 | | - else { |
466 | | - $watchlist_start = $watchlist_end = null; |
467 | | - } |
468 | | - |
| 464 | + |
469 | 465 | wfRunHooks( 'OldChangesListRecentChangesLine', array(&$this, &$s, $rc) ); |
470 | 466 | |
471 | 467 | wfProfileOut( __METHOD__ ); |
472 | | - return "$dateheader<li class=\"".implode( ' ', $classes )."\">".$watchlist_start.$s.$watchlist_end."</li>\n"; |
| 468 | + return "$dateheader<li class=\"".implode( ' ', $classes )."\">".$s."</li>\n"; |
473 | 469 | } |
474 | 470 | } |
475 | 471 | |