if( $params[2] ) {
$details .= ' ['.wfMsg('protect-summary-cascade').']';
}
+ } else if ( $type == 'move' && count( $params ) == 3 ) {
+ if( $params[2] ) {
+ $details .= ' [' . wfMsg( 'move-redirect-suppressed' ) . ']';
+ }
}
$rv = wfMsgReal( $wgLogActions[$key], $params, true, !$skin ) . $details;
}
'pl_namespace' => $nt->getNamespace(),
'pl_title' => $nt->getDBkey() ),
$fname );
+ $redirectSuppressed = false;
} else {
$this->resetArticleID( 0 );
+ $redirectSuppressed = true;
}
-
+
# Move an image if this is a file
if( $this->getNamespace() == NS_FILE ) {
$file = wfLocalFile( $this );
# Log the move
$log = new LogPage( 'move' );
- $log->addEntry( 'move_redir', $this, $reason, array( 1 => $nt->getPrefixedText() ) );
+ $log->addEntry( 'move_redir', $this, $reason, array( 1 => $nt->getPrefixedText(), 2 => $redirectSuppressed ) );
# Purge squid
if ( $wgUseSquid ) {
'pl_namespace' => $nt->getNamespace(),
'pl_title' => $nt->getDBkey() ),
$fname );
+ $redirectSuppressed = false;
} else {
$this->resetArticleID( 0 );
+ $redirectSuppressed = true;
}
-
+
# Move an image if this is a file
if( $this->getNamespace() == NS_FILE ) {
$file = wfLocalFile( $this );
# Log the move
$log = new LogPage( 'move' );
- $log->addEntry( 'move', $this, $reason, array( 1 => $nt->getPrefixedText()) );
+ $log->addEntry( 'move', $this, $reason, array( 1 => $nt->getPrefixedText(), 2 => $redirectSuppressed ) );
# Purge caches as per article creation
Article::onArticleCreate( $nt );
'movepage-max-pages' => 'The maximum of $1 {{PLURAL:$1|page|pages}} has been moved and no more will be moved automatically.',
'1movedto2' => '[[$1]] moved to [[$2]]',
'1movedto2_redir' => '[[$1]] moved to [[$2]] over redirect',
+'move-redirect-suppressed' => 'redirect suppressed',
'movelogpage' => 'Move log',
'movelogpagetext' => 'Below is a list of pages moved.',
'movereason' => 'Reason:',