From: Magnus Manske Date: Wed, 4 Aug 2004 17:08:33 +0000 (+0000) Subject: fixing my redirect bug fix (hopefully) X-Git-Tag: 1.5.0alpha1~2519 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=5d88dfc6099a57b909f10f3da615e0ae2bfc9715;p=lhc%2Fweb%2Fwiklou.git fixing my redirect bug fix (hopefully) --- 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 );