From 635334ba0bea6f074fcbcd850238794a40825134 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 14 Apr 2011 11:37:03 +0000 Subject: [PATCH] Move $rxTc initialization next to where it is used --- includes/Title.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 3e6690212c..819ec46c77 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2569,8 +2569,6 @@ class Title { global $wgContLang, $wgLocalInterwiki; # Initialisation - $rxTc = self::getTitleInvalidRegex(); - $this->mInterwiki = $this->mFragment = ''; $this->mNamespace = $this->mDefaultNamespace; # Usually NS_MAIN @@ -2680,6 +2678,7 @@ class Title { } # Reject illegal characters. + $rxTc = self::getTitleInvalidRegex(); if ( preg_match( $rxTc, $dbkey ) ) { return false; } -- 2.20.1