*
* @ingroup SpecialPage
*/
-
class SpecialContributions extends IncludableSpecialPage {
protected $opts;
if ( !$this->including() ) {
$out->addHTML( $this->getForm() );
}
+
return;
}
* to extensions to subscribe to the hook to parse the row.
*/
wfSuppressWarnings();
- $rev = new Revision( $row );
- $validRevision = (bool)$rev->getId();
+ try {
+ $rev = new Revision( $row );
+ $validRevision = (bool)$rev->getId();
+ } catch ( MWException $e ) {
+ $validRevision = false;
+ }
wfRestoreWarnings();
if ( $validRevision ) {
wfRunHooks( 'ContributionsLineEnding', array( $this, &$ret, $row, &$classes ) );
if ( $classes === array() && $ret === '' ) {
- wfDebug( 'Dropping Special:Contribution row that could not be formatted' );
+ wfDebug( "Dropping Special:Contribution row that could not be formatted\n" );
$ret = "<!-- Could not format Special:Contribution row. -->\n";
} else {
$ret = Html::rawElement( 'li', array( 'class' => $classes ), $ret ) . "\n";