* Proper escaping, some whitespace
This commit is contained in:
parent
b50f36cc2a
commit
13be088266
1 changed files with 15 additions and 13 deletions
|
@ -36,7 +36,7 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
|
|
||||||
$opts = explode(',', strtolower($options));
|
$opts = explode(',', strtolower($options));
|
||||||
|
|
||||||
$dbr =& wfGetDB( DB_SLAVE );
|
$dbr = wfGetDB( DB_SLAVE );
|
||||||
|
|
||||||
$userTable = $dbr->tableName('user');
|
$userTable = $dbr->tableName('user');
|
||||||
$userGroupTable = $dbr->tableName('user_groups');
|
$userGroupTable = $dbr->tableName('user_groups');
|
||||||
|
@ -92,10 +92,10 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
|
|
||||||
$output = "<table class=\"wikitable plainlinks{$sortable}\" >\n".
|
$output = "<table class=\"wikitable plainlinks{$sortable}\" >\n".
|
||||||
"<tr class='contributionscores-tableheadings'>\n".
|
"<tr class='contributionscores-tableheadings'>\n".
|
||||||
"<td class=\"contributionscores-headercell\">" . wfMsg( 'contributionscores-score' ) . "</td>\n" .
|
"<td class=\"contributionscores-headercell\">" . wfMsgHtml( 'contributionscores-score' ) . "</td>\n" .
|
||||||
"<td class=\"contributionscores-headercell\">" . wfMsg( 'contributionscores-pages' ) . "</td>\n" .
|
"<td class=\"contributionscores-headercell\">" . wfMsgHtml( 'contributionscores-pages' ) . "</td>\n" .
|
||||||
"<td class=\"contributionscores-headercell\">" . wfMsg( 'contributionscores-changes' ) . "</td>\n" .
|
"<td class=\"contributionscores-headercell\">" . wfMsgHtml( 'contributionscores-changes' ) . "</td>\n" .
|
||||||
"<td class=\"contributionscores-headercell\">" . wfMsg( 'contributionscores-username' ) . "</td>\n";
|
"<td class=\"contributionscores-headercell\">" . wfMsgHtml( 'contributionscores-username' ) . "</td>\n";
|
||||||
|
|
||||||
$skin =& $wgUser->getSkin();
|
$skin =& $wgUser->getSkin();
|
||||||
$altrow = '';
|
$altrow = '';
|
||||||
|
@ -150,6 +150,7 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function showInclude( $par ) {
|
function showInclude( $par ) {
|
||||||
global $wgOut;
|
global $wgOut;
|
||||||
|
|
||||||
|
@ -180,7 +181,7 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
||||||
}
|
}
|
||||||
$reportTitle .= " " . wfMsg( 'contributionscores-top', $limit );
|
$reportTitle .= " " . wfMsg( 'contributionscores-top', $limit );
|
||||||
$title = "<h4 class='contributionscores-title'> $reportTitle </h4>\n";
|
$title = Xml::element( 'h4', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
|
||||||
$wgOut->addHtml( $this->genContributionScoreTable( $days, $limit, $title, $options ) );
|
$wgOut->addHtml( $this->genContributionScoreTable( $days, $limit, $title, $options ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,7 +204,8 @@ class ContributionScores extends IncludableSpecialPage
|
||||||
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
$reportTitle = wfMsg( 'contributionscores-allrevisions' );
|
||||||
}
|
}
|
||||||
$reportTitle .= " " . wfMsg('contributionscores-top', $scoreReport[1] );
|
$reportTitle .= " " . wfMsg('contributionscores-top', $scoreReport[1] );
|
||||||
$wgOut->addHtml ("<h2 class='contributionscores-title'>$reportTitle</h2>\n");
|
$title = Xml::element( 'h2', array( 'class' => 'contributionscores-title' ), $reportTitle ) . "\n";
|
||||||
|
$wgOut->addHtml( $title );
|
||||||
$wgOut->addHtml( $this->genContributionScoreTable( $scoreReport[0], $scoreReport[1] ) );
|
$wgOut->addHtml( $this->genContributionScoreTable( $scoreReport[0], $scoreReport[1] ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue