X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fminify.php;h=c357eebea3bab4894f0b6a9d307691024b591f6d;hb=bfa365a8ac4abe25a696a4ff337cb26c60748262;hp=efecaad0d014341c61d3a106d31a12a7d614e1ce;hpb=c0cdf0e91186728c8e283bbcc977d6831f4b93d1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/minify.php b/maintenance/minify.php index efecaad0d0..c357eebea3 100644 --- a/maintenance/minify.php +++ b/maintenance/minify.php @@ -40,12 +40,6 @@ class MinifyScript extends Maintenance { "Directory for output. If this is not specified, and neither is --outfile, then the\n" . "output files will be sent to the same directories as the input files.", false, true ); - $this->addOption( 'js-statements-on-own-line', - "Boolean value for putting statements on their own line when minifying JavaScript.", - false, true ); - $this->addOption( 'js-max-line-length', - "Maximum line length for JavaScript minification.", - false, true ); $this->mDescription = "Minify a file or set of files.\n\n" . "If --outfile is not specified, then the output file names will have a .min extension\n" . "added, e.g. jquery.js -> jquery.min.js."; @@ -108,8 +102,6 @@ class MinifyScript extends Maintenance { } public function minify( $inPath, $outPath ) { - global $wgResourceLoaderMinifierStatementsOnOwnLine, $wgResourceLoaderMinifierMaxLineLength; - $extension = $this->getExtension( $inPath ); $this->output( basename( $inPath ) . ' -> ' . basename( $outPath ) . '...' ); @@ -126,10 +118,7 @@ class MinifyScript extends Maintenance { switch ( $extension ) { case 'js': - $outText = JavaScriptMinifier::minify( $inText, - $this->getOption( 'js-statements-on-own-line', $wgResourceLoaderMinifierStatementsOnOwnLine ), - $this->getOption( 'js-max-line-length', $wgResourceLoaderMinifierMaxLineLength ) - ); + $outText = JavaScriptMinifier::minify( $inText ); break; case 'css': $outText = CSSMin::minify( $inText );