Merged in bugfix/HOR-4605 (pull request #6493)

HOR-4605

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Gustavo Silva
2018-05-30 15:20:43 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -133,7 +133,7 @@ if (!$sw_file_exists) {
$res['message'] = $info['basename'] . $ver . '.' . $ext; $res['message'] = $info['basename'] . $ver . '.' . $ext;
print G::json_encode( $res ); print G::json_encode( $res );
} else { } else {
$nameFile = $info['basename'] . $ver . '.' . $ext; $nameFile = G::inflect($info['basename'] . $ver) . '.' . $ext;
$licensedFeatures = &PMLicensedFeatures::getSingleton(); $licensedFeatures = &PMLicensedFeatures::getSingleton();
$downloadStatus = false; $downloadStatus = false;
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
@@ -159,7 +159,7 @@ if (!$sw_file_exists) {
} }
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (!$downloadStatus) { if (!$downloadStatus) {
G::streamFile( $realPath, $download, G::inflect($nameFile)); //download G::streamFile( $realPath, $download, $nameFile); //download
} }
} }
} }