$de = $contentHandler->createDifferenceEngine( $this->getContext(), $oldid, $diff, $rcid, $purge, $unhide );
// DifferenceEngine directly fetched the revision:
- $this->mRevIdFetched = $de->getNewid();
+ $this->mRevIdFetched = $de->mNewid;
$de->showDiffPage( $diffOnly );
// Run view updates for the newer revision being diffed (and shown below the diff if not $diffOnly)
wfRunHooks( 'ShowMissingArticle', array( $this ) );
+ // Give extensions a chance to hide their (unrelated) log entries
+ $logTypes = array( 'delete', 'move' );
+ $conds = array( "log_action != 'revision'" );
+ wfRunHooks( 'Article::MissingArticleConditions', array( &$conds, $logTypes ) );
+
# Show delete and move logs
- LogEventsList::showLogExtract( $outputPage, array( 'delete', 'move' ), $this->getTitle(), '',
+ LogEventsList::showLogExtract( $outputPage, $logTypes, $this->getTitle(), '',
array( 'lim' => 10,
- 'conds' => array( "log_action != 'revision'" ),
+ 'conds' => $conds,
'showIfEmpty' => false,
'msgKey' => array( 'moveddeleted-notice' ) )
);
}
if ( $request->wasPosted() && $user->matchEditToken( $request->getVal( 'wpEditToken' ),
- array( 'delete', $this->getTitle()->getPrefixedText() ) ) )
- {
+ array( 'delete', $this->getTitle()->getPrefixedText() ) )
+ ) {
# Flag to hide all contents of the archived revisions
$suppress = $request->getVal( 'wpSuppress' ) && $user->isAllowed( 'suppressrevision' );