X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fminify.php;h=efecaad0d014341c61d3a106d31a12a7d614e1ce;hb=5a77286a1e32f4fd784b5c2985f149fe39b45073;hp=ec936c830ee021de3d426f09e1dc3eceadddb4e7;hpb=5c5fb511c70346a660cb6aa388cc677e11d3bdab;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/minify.php b/maintenance/minify.php index ec936c830e..efecaad0d0 100644 --- a/maintenance/minify.php +++ b/maintenance/minify.php @@ -49,7 +49,6 @@ class MinifyScript extends Maintenance { $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."; - } public function execute() { @@ -66,6 +65,7 @@ class MinifyScript extends Maintenance { // Minify one file $this->minify( $this->getArg( 0 ), $this->getOption( 'outfile' ) ); + return; } @@ -103,6 +103,7 @@ class MinifyScript extends Maintenance { $this->error( "No file extension, cannot determine type: $fileName" ); exit( 1 ); } + return substr( $fileName, $dotPos + 1 ); }