From: Tim Starling Date: Fri, 17 Sep 2010 08:04:18 +0000 (+0000) Subject: Fix for r73196: don't use $this->a as a temporary variable, as promised in the commit... X-Git-Tag: 1.31.0-rc.0~34889 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=5371e4f5110aa34e3f5f15f59b79f1f48868e238;p=lhc%2Fweb%2Fwiklou.git Fix for r73196: don't use $this->a as a temporary variable, as promised in the commit message. I reverted it for testing and forgot to save after I reverted back. --- diff --git a/includes/libs/JSMin.php b/includes/libs/JSMin.php index 5d8189cb98..84ea757052 100644 --- a/includes/libs/JSMin.php +++ b/includes/libs/JSMin.php @@ -109,18 +109,18 @@ class JSMin { $runLength = strcspn( $this->input, $interestingChars, $this->inputIndex ); $this->output .= substr( $this->input, $this->inputIndex, $runLength ); $this->inputIndex += $runLength; - $this->a = $this->get(); + $c = $this->get(); - if ( $this->a === $this->b ) { + if ( $c === $this->b ) { break; } - if ( $this->a === "\n" || $this->a === null ) { + if ( $c === "\n" || $c === null ) { throw new JSMinException( 'Unterminated string literal.' ); } - if ( $this->a === '\\' ) { - $this->output .= $this->a . $this->get(); + if ( $c === '\\' ) { + $this->output .= $c . $this->get(); } } }