dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Collapse some nested if statements
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialContributions.php
diff --git
a/includes/specials/SpecialContributions.php
b/includes/specials/SpecialContributions.php
index
c0303b2
..
08a7fde
100644
(file)
--- a/
includes/specials/SpecialContributions.php
+++ b/
includes/specials/SpecialContributions.php
@@
-244,9
+244,9
@@
class SpecialContributions extends IncludableSpecialPage {
$output = $pager->getBody();
if ( !$this->including() ) {
$output = $pager->getBody();
if ( !$this->including() ) {
- $output =
'<p>' . $pager->getNavigationBar() . '</p>'
.
+ $output =
$pager->getNavigationBar()
.
$output .
$output .
-
'<p>' . $pager->getNavigationBar() . '</p>'
;
+
$pager->getNavigationBar()
;
}
$out->addHTML( $output );
}
}
$out->addHTML( $output );
}
@@
-267,14
+267,10
@@
class SpecialContributions extends IncludableSpecialPage {
$message = 'sp-contributions-footer';
}
$message = 'sp-contributions-footer';
}
- if ( $message ) {
- if ( !$this->including() ) {
- if ( !$this->msg( $message, $target )->isDisabled() ) {
- $out->wrapWikiMsg(
- "<div class='mw-contributions-footer'>\n$1\n</div>",
- [ $message, $target ] );
- }
- }
+ if ( $message && !$this->including() && !$this->msg( $message, $target )->isDisabled() ) {
+ $out->wrapWikiMsg(
+ "<div class='mw-contributions-footer'>\n$1\n</div>",
+ [ $message, $target ] );
}
}
}
}
}
}
@@
-313,7
+309,11
@@
class SpecialContributions extends IncludableSpecialPage {
$links = '';
if ( $talk ) {
$tools = self::getUserLinks( $this, $userObj );
$links = '';
if ( $talk ) {
$tools = self::getUserLinks( $this, $userObj );
- $links = $this->getLanguage()->pipeList( $tools );
+ $links = Html::openElement( 'span', [ 'class' => 'mw-changeslist-links' ] );
+ foreach ( $tools as $tool ) {
+ $links .= Html::rawElement( 'span', [], $tool ) . ' ';
+ }
+ $links = trim( $links ) . Html::closeElement( 'span' );
// Show a note if the user is blocked and display the last block log entry.
// Do not expose the autoblocks, since that may lead to a leak of accounts' IPs,
// Show a note if the user is blocked and display the last block log entry.
// Do not expose the autoblocks, since that may lead to a leak of accounts' IPs,
@@
-353,7
+353,10
@@
class SpecialContributions extends IncludableSpecialPage {
}
}
}
}
- return $this->msg( 'contribsub2' )->rawParams( $user, $links )->params( $userObj->getName() );
+ return Html::rawElement( 'div', [ 'class' => 'mw-contributions-user-tools' ],
+ $this->msg( 'contributions-subtitle' )->rawParams( $user )->params( $userObj->getName() )
+ . ' ' . $links
+ );
}
/**
}
/**