return true;
}
+ # Check for a suppression tag (used e.g. in periodically archived discussions)
+ $mw = MagicWord::get( 'staticredirect' );
+ if ( $mw->match( $text ) ) {
+ wfDebug( __METHOD__.": skipping: suppressed with __STATICREDIRECT__\n" );
+ return true;
+ }
+
# Find the current final destination
$newTitle = self::getFinalDestination( $this->redirTitle );
if ( !$newTitle ) {
'pagesize' => array( 1, 'PAGESIZE' ),
'index' => array( 1, '__INDEX__' ),
'noindex' => array( 1, '__NOINDEX__' ),
+ 'staticredirect' => array( 1, '__STATICREDIRECT__' ),
);
/**