)
);
+ $filters = array();
+
if ( $this->getUser()->isAllowed( 'deletedhistory' ) ) {
- $deletedOnlyCheck = Html::rawElement(
+ $filters[] = Html::rawElement(
'span',
array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
array( 'class' => 'mw-input' )
)
);
- } else {
- $deletedOnlyCheck = '';
}
- $checkLabelTopOnly = Html::rawElement(
+ $filters[] = Html::rawElement(
'span',
array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
array( 'class' => 'mw-input' )
)
);
- $checkLabelNewOnly = Html::rawElement(
+ $filters[] = Html::rawElement(
'span',
array( 'class' => 'mw-input-with-label' ),
Xml::checkLabel(
array( 'class' => 'mw-input' )
)
);
+
+ Hooks::run(
+ 'SpecialContributions::getForm::filters',
+ array( $this, &$filters )
+ );
+
$extraOptions = Html::rawElement(
'td',
array( 'colspan' => 2 ),
- $deletedOnlyCheck . $checkLabelTopOnly . $checkLabelNewOnly
+ implode( '', $filters )
);
$dateSelectionAndSubmit = Xml::tags( 'td', array( 'colspan' => 2 ),
# Tags, if any.
list( $tagSummary, $newClasses ) = ChangeTags::formatSummaryRow(
$row->ts_tags,
- 'contributions'
+ 'contributions',
+ $this->getContext()
);
$classes = array_merge( $classes, $newClasses );
$ret .= " $tagSummary";