From: Nick Jenkins Date: Wed, 29 Nov 2006 12:57:54 +0000 (+0000) Subject: Appears to be a dupe of the line above it, and ParserOptions::initialiseFromUser... X-Git-Tag: 1.31.0-rc.0~55037 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=432725f0bceb09329dd468e078d8c0825d1a110f;p=lhc%2Fweb%2Fwiklou.git Appears to be a dupe of the line above it, and ParserOptions::initialiseFromUser() [ which is called by the ParserOptions constructor, which in turn is called by ParserOptions::newFromUser() ] does not appear to have any side effects. --- diff --git a/includes/SpecialPreferences.php b/includes/SpecialPreferences.php index a06bf793fb..39f2fc57b4 100644 --- a/includes/SpecialPreferences.php +++ b/includes/SpecialPreferences.php @@ -334,7 +334,6 @@ class PreferencesForm { } $wgOut->setParserOptions( ParserOptions::newFromUser( $wgUser ) ); - $po = ParserOptions::newFromUser( $wgUser ); $this->mainPrefsForm( $error === false ? 'success' : 'error', $error); }