From ec70a23aa710181b07ede711b5d20785f42c17dc Mon Sep 17 00:00:00 2001 From: X! Date: Tue, 26 May 2009 11:03:50 +0000 Subject: [PATCH] Modification of r50714, adding element to the li class, rather than a separate div class. --- includes/ChangesList.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/includes/ChangesList.php b/includes/ChangesList.php index fa1b724c66..36292e2171 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -55,7 +55,7 @@ class ChangesList { } /** - * Sets the list to use a
tag + * Sets the list to use a
  • tag * @param bool $value */ public function setWatchlistDivs( $value = true ) { @@ -458,17 +458,13 @@ class OldChangesList extends ChangesList { } if( $this->watchlist ) { - $watchlist_start = Xml::openElement( 'div', array( 'class' => Sanitizer::escapeClass( 'watchlist-'.$rc->mAttribs['rc_namespace'].'-'.$rc->mAttribs['rc_title'] ) ) ); - $watchlist_end = Xml::closeElement( 'div' ); + $classes[] = Sanitizer::escapeClass( 'watchlist-'.$rc->mAttribs['rc_namespace'].'-'.$rc->mAttribs['rc_title'] ); } - else { - $watchlist_start = $watchlist_end = null; - } - + wfRunHooks( 'OldChangesListRecentChangesLine', array(&$this, &$s, $rc) ); wfProfileOut( __METHOD__ ); - return "$dateheader
  • ".$watchlist_start.$s.$watchlist_end."
  • \n"; + return "$dateheader
  • ".$s."
  • \n"; } } -- 2.20.1