Performace adds:

- jpeg MIME content.
- changing echo instead print for js and css files.
This commit is contained in:
ralph
2012-11-27 13:44:02 -04:00
parent 295ca5216c
commit 4d53c8af4f
2 changed files with 6 additions and 4 deletions

View File

@@ -341,7 +341,7 @@ class Bootstrap
if (strtolower( $typefile ) == 'js' && $typearray[0] == 'translation') {
Bootstrap::sendHeaders( $filename, 'text/javascript', $download, $downloadFileName );
$output = Bootstrap::streamJSTranslationFile( $filename, $typearray[1] );
print $output;
echo $output;
return;
}
@@ -349,7 +349,7 @@ class Bootstrap
if (strtolower( $typefile ) == 'css' && $folderarray[count( $folderarray ) - 2] == 'css') {
Bootstrap::sendHeaders( $filename, 'text/css', $download, $downloadFileName );
$output = Bootstrap::streamCSSBigFile( $typearray[0] );
print $output;
echo $output;
return;
}