From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- includes/libs/JavaScriptMinifier.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes/libs/JavaScriptMinifier.php') diff --git a/includes/libs/JavaScriptMinifier.php b/includes/libs/JavaScriptMinifier.php index 2990782c..141a5153 100644 --- a/includes/libs/JavaScriptMinifier.php +++ b/includes/libs/JavaScriptMinifier.php @@ -565,6 +565,14 @@ class JavaScriptMinifier { $out .= ' '; $lineLength++; } + if ( + $type === self::TYPE_LITERAL + && ( $token === 'true' || $token === 'false' ) + && ( $state === self::EXPRESSION || $state === self::PROPERTY_EXPRESSION ) + && $last !== '.' + ) { + $token = ( $token === 'true' ) ? '!0' : '!1'; + } $out .= $token; $lineLength += $end - $pos; // += strlen( $token ) -- cgit v1.2.3-54-g00ecf