Index: trunk/phase3/includes/DoubleRedirectJob.php |
— | — | @@ -66,6 +66,13 @@ |
67 | 67 | return true; |
68 | 68 | } |
69 | 69 | |
| 70 | + # Check for a suppression tag (used e.g. in periodically archived discussions) |
| 71 | + $mw = MagicWord::get( 'staticredirect' ); |
| 72 | + if ( $mw->match( $text ) ) { |
| 73 | + wfDebug( __METHOD__.": skipping: suppressed with __STATICREDIRECT__\n" ); |
| 74 | + return true; |
| 75 | + } |
| 76 | + |
70 | 77 | # Find the current final destination |
71 | 78 | $newTitle = self::getFinalDestination( $this->redirTitle ); |
72 | 79 | if ( !$newTitle ) { |
Index: trunk/phase3/includes/MagicWord.php |
— | — | @@ -157,6 +157,7 @@ |
158 | 158 | 'hiddencat', |
159 | 159 | 'index', |
160 | 160 | 'noindex', |
| 161 | + 'staticredirect', |
161 | 162 | ); |
162 | 163 | |
163 | 164 | |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -342,6 +342,7 @@ |
343 | 343 | 'pagesize' => array( 1, 'PAGESIZE' ), |
344 | 344 | 'index' => array( 1, '__INDEX__' ), |
345 | 345 | 'noindex' => array( 1, '__NOINDEX__' ), |
| 346 | + 'staticredirect' => array( 1, '__STATICREDIRECT__' ), |
346 | 347 | ); |
347 | 348 | |
348 | 349 | /** |