Fix double setTargetLanguage of r90337
authorRobin Pepermans <robin@users.mediawiki.org>
Sat, 18 Jun 2011 15:08:05 +0000 (15:08 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Sat, 18 Jun 2011 15:08:05 +0000 (15:08 +0000)
includes/EditPage.php

index 7dc1c0a..60e4f9c 100644 (file)
@@ -2070,7 +2070,6 @@ HTML
                                if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) {
                                        $parserOptions->setTargetLanguage( $this->mTitle->getPageLanguage() );
                                }
-                               $parserOptions->setTargetLanguage( $this->mTitle->getPageLanguage() );
                                $parserOptions->setTidy( true );
                                $parserOptions->enableLimitReport();
                                $parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $toparse ),