From: X! Date: Tue, 26 May 2009 11:03:50 +0000 (+0000) Subject: Modification of r50714, adding element to the li class, rather than a separate div... X-Git-Tag: 1.31.0-rc.0~41652 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=ec70a23aa710181b07ede711b5d20785f42c17dc;p=lhc%2Fweb%2Fwiklou.git Modification of r50714, adding element to the li class, rather than a separate div class. --- 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"; } }