From: Arne Heizmann Date: Sun, 15 Aug 2004 23:08:02 +0000 (+0000) Subject: don't die; redirect X-Git-Tag: 1.5.0alpha1~2322 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=704afdb8d44414e1bbd1606d15a4adf606b19387;p=lhc%2Fweb%2Fwiklou.git don't die; redirect --- 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() {