http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73197
Revision: 73197
Author: tstarling
Date: 2010-09-17 08:04:18 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/phase3/includes/libs/JSMin.php
Modified: trunk/phase3/includes/libs/JSMin.php
===================================================================
--- trunk/phase3/includes/libs/JSMin.php 2010-09-17 07:59:39 UTC (rev
73196)
+++ trunk/phase3/includes/libs/JSMin.php 2010-09-17 08:04:18 UTC (rev
73197)
@@ -109,18 +109,18 @@
$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();
}
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs