From faabe7fe7bf0f7d1759ccf0b42ef6ad5441763d4 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 23 Sep 2009 17:35:08 +0000 Subject: [PATCH] * Consistency tweak: coalesce tool links with pipes instead of a lot () () () * Process messages with escapenoentities instead of escape to allow use of for example • * Change string explode to array --- .../specials/SpecialDeletedContributions.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialDeletedContributions.php b/includes/specials/SpecialDeletedContributions.php index d5d220e0b6..87bd76c5aa 100644 --- a/includes/specials/SpecialDeletedContributions.php +++ b/includes/specials/SpecialDeletedContributions.php @@ -11,8 +11,9 @@ class DeletedContribsPager extends IndexPager { function __construct( $target, $namespace = false ) { parent::__construct(); - foreach( explode( ' ', 'deletionlog undeleteviewlink diff' ) as $msg ) { - $this->messages[$msg] = wfMsgExt( $msg, array( 'escape') ); + $msgs = array( 'deletionlog', 'undeleteviewlink', 'diff' ); + foreach( $msgs as $msg ) { + $this->messages[$msg] = wfMsgExt( $msg, array( 'escapenoentities') ); } $this->target = $target; $this->namespace = $namespace; @@ -207,9 +208,17 @@ class DeletedContribsPager extends IndexPager { $del = ''; } - $ret = "{$del}{$link} ({$last}) ({$dellog}) ({$reviewlink}) . . {$mflag} {$pagelink} {$comment}"; + $tools = Html::rawElement( + 'span', + array( 'class' => 'mw-deletedcontribs-tools' ), + wfMsg( 'parentheses', $wgLang->pipeList( array( $last, $dellog, $reviewlink ) ) ) + ); - $ret = "
  • $ret
  • \n"; + $ret = Html::rawElement( + 'li', + array(), + "{$del}{$link} {$tools} . . {$mflag} {$pagelink} {$comment}" + ) . "\n"; wfProfileOut( __METHOD__ ); return $ret; -- 2.20.1