FIX: Litle fix to allow load any css file from plugins

This commit is contained in:
Erik Amaru Ortiz
2013-06-18 13:00:23 -04:00
parent 03ff6810c8
commit a2b850f272
2 changed files with 3 additions and 3 deletions

View File

@@ -569,7 +569,7 @@ class Bootstrap
* @param string $downloadFileName
* @return string
*/
public function streamFile($file, $download = false, $downloadFileName = '')
public function streamFile($file, $download = false, $downloadFileName = '', $forceLoad = false)
{
$fileNameIni = $file;
@@ -596,7 +596,7 @@ class Bootstrap
}
//trick to generate the big css file for ext style .
if (strtolower($typefile) == 'css' && $folderarray[count($folderarray) - 2] == 'css') {
if (strtolower($typefile) == 'css' && $folderarray[count($folderarray) - 2] == 'css' && ! $forceLoad) {
Bootstrap::sendHeaders($fileNameIni, "text/css", $download, $downloadFileName);
$output = Bootstrap::streamCSSBigFile($typearray[0]);
echo $output;

View File

@@ -386,7 +386,7 @@ if (Bootstrap::virtualURI( $_SERVER['REQUEST_URI'], $virtualURITable, $realPath
//NewRelic Snippet - By JHL
transactionLog($pluginFilename);
Bootstrap::streamFile( $pluginFilename );
Bootstrap::streamFile( $pluginFilename, false, '', true );
}
die();
}