don't die; redirect
authorArne Heizmann <timwi@users.mediawiki.org>
Sun, 15 Aug 2004 23:08:02 +0000 (23:08 +0000)
committerArne Heizmann <timwi@users.mediawiki.org>
Sun, 15 Aug 2004 23:08:02 +0000 (23:08 +0000)
includes/SpecialMaintenance.php

index a9a5cc1..220da9a 100644 (file)
@@ -160,19 +160,19 @@ function wfSpecialDisambiguations() {
        $wgOut->addHTML( "<p>{$sl}\n" );
 }
 
-# TODO & FIXME
 # DoubleRedirects and BrokenRedirects are now using the QueryPage class.
-# Might want to automaticly redirect users to the new pages instead
-# of dieing.
 function wfSpecialDoubleRedirects() {
-       wfDebugDieBacktrace( 'SpecialMaintenance.php:wfSpecialDoubleRedirects() is obsolete use SpecialDoubleRedirects.php');
+       global $wgOut;
+       $t = Title::makeTitle( NS_SPECIAL, "DoubleRedirects" );
+       $wgOut->redirect ($t->getFullURL());
 }
 
 function wfSpecialBrokenRedirects() {
-       wfDebugDieBacktrace( 'SpecialMaintenance.php:wfSpecialBrokenRedirects() is obsolete use SpecialBrokenRedirects.php');
+       global $wgOut;
+       $t = Title::makeTitle( NS_SPECIAL, "BrokenRedirects" );
+       $wgOut->redirect ($t->getFullURL());
 }
 
-
 # This doesn't really work anymore, because self-links are now displayed as
 # unlinked bold text, and are not entered into the link table.
 function wfSpecialSelfLinks() {