From 704afdb8d44414e1bbd1606d15a4adf606b19387 Mon Sep 17 00:00:00 2001 From: Arne Heizmann Date: Sun, 15 Aug 2004 23:08:02 +0000 Subject: [PATCH] don't die; redirect --- includes/SpecialMaintenance.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/SpecialMaintenance.php b/includes/SpecialMaintenance.php index a9a5cc16db..220da9af5a 100644 --- a/includes/SpecialMaintenance.php +++ b/includes/SpecialMaintenance.php @@ -160,19 +160,19 @@ function wfSpecialDisambiguations() { $wgOut->addHTML( "

{$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() { -- 2.20.1