From 5d88dfc6099a57b909f10f3da615e0ae2bfc9715 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Wed, 4 Aug 2004 17:08:33 +0000 Subject: [PATCH] fixing my redirect bug fix (hopefully) --- includes/Parser.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 745228c4a1..c854adf3bc 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1055,8 +1055,9 @@ class Parser if ( !$tc ) { $tc = Title::legalChars() . '#%'; } $sk =& $this->mOptions->getSkin(); - $isRedirect = false ; - if ( trim ( substr ( $s , 0 , 10 ) ) == '#REDIRECT' ) $isRedirect = true ; + $redirect = MagicWord::get ( MAG_REDIRECT ) ; + $isRedirect = $redirect->matchStart ( strtoupper ( substr ( $s , 0 , 10 ) ) ) ; + $a = explode( '[[', ' ' . $s ); $s = array_shift( $a ); $s = substr( $s, 1 ); -- 2.20.1