Skip to content

Commit

Permalink
Fixed #19487: Packer template operators do not execute optimizer when…
Browse files Browse the repository at this point in the history
… called with only one file
  • Loading branch information
dpobel committed Jun 19, 2012
1 parent fabd3fe commit 6bf9b97
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions classes/ezjscpacker.php
Expand Up @@ -385,12 +385,6 @@ static function packFiles( $fileArray, $subPath = '', $fileExtension = '.js', $p
eZDebug::writeWarning( "Could not find any files: " . var_export( $fileArray, true ), __METHOD__ );
return array();
}
else if ( !isset( $data['locale'][1] ) && $data['locale'][0] && !$data['locale'][0] instanceof ezjscServerRouter )
{
self::$log[] = $data;
// return if there is only one file in array to save us from caching it
return array_merge( $data['http'], $data['www'] );
}

// See if cahe file exists and if it has expired (only if time is not part of name)
if ( $ezjscINI->variable( 'Packer', 'AppendLastModifiedTime' ) === 'enabled' )
Expand Down

0 comments on commit 6bf9b97

Please sign in to comment.