From 632ce2a8fd7ad92ee89eee7036c60b8b1c3f3273 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 9 Oct 2012 11:29:48 +0200 Subject: [PATCH] Remove unused variables. Change-Id: I4b76cbbca22555eacb8ef4de58993b485f7cdd18 --- includes/HTMLForm.php | 1 - includes/OutputPage.php | 3 +-- includes/Title.php | 3 ++- includes/parser/Parser.php | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index 5c00b9f6e7..ce67e3d5c7 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -1321,7 +1321,6 @@ abstract class HTMLFormField { public function getRaw( $value ) { list( $errors, $errorClass ) = $this->getErrorsAndErrorClass( $value ); $inputHtml = $this->getInputHTML( $value ); - $fieldType = get_class( $this ); $helptext = $this->getHelpTextHtmlRaw( $this->getHelpText() ); $cellAttributes = array(); $label = $this->getLabelHtml( $cellAttributes ); diff --git a/includes/OutputPage.php b/includes/OutputPage.php index f0fd067c78..79d0433c06 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2912,7 +2912,7 @@ $templates * @return array */ public function getJSVars() { - global $wgUseAjax, $wgContLang; + global $wgContLang; $latestRevID = 0; $pageID = 0; @@ -3565,7 +3565,6 @@ $templates $msgSpecs = array_values( $msgSpecs ); $s = $wrap; foreach ( $msgSpecs as $n => $spec ) { - $options = array(); if ( is_array( $spec ) ) { $args = $spec; $name = array_shift( $args ); diff --git a/includes/Title.php b/includes/Title.php index 0c824e6ef6..3212f542cc 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3768,7 +3768,8 @@ class Title { if ( !is_object( $nullRevision ) ) { throw new MWException( 'No valid null revision produced in ' . __METHOD__ ); } - $nullRevId = $nullRevision->insertOn( $dbw ); + + $nullRevision->insertOn( $dbw ); # Change the name of the target page: $dbw->update( 'page', diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 1902443a1e..3c94805503 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1545,6 +1545,7 @@ class Parser { $i = 0; while ( $i