* Fixed javascript compression behaviour with zlib module. Thanks to @tejadon

* Fixed javascript header
* Fixed UI on installation template style
This commit is contained in:
nuxsmin
2015-04-25 11:20:37 +02:00
parent 98c9911eb9
commit 3bb7424f9d
4 changed files with 32 additions and 4 deletions

View File

@@ -1,4 +1,11 @@
=== ** v1.1.2.21 ===
* Fixed javascript compression behaviour with zlib module. Thanks to @tejadon
* Fixed javascript header
* Fixed UI on installation template style
=== ** v1.1.2.20 ===
* Added database connection port
* Fixed some UI errors
* Fixed error recursion on database connection error (needs more testing)

View File

@@ -1,3 +1,9 @@
=== ** v1.1.2.21 ===
* Corregido conflicto con módulo de compresión zlib. Gracias a @tejadon
* Corregida cabecera javascript
* Corregido estilo de la plantilla de instalación
=== ** v1.1.2.20 ===
* Añadido puerto de conexión a la base de datos

View File

@@ -1734,6 +1734,10 @@ fieldset.warning a {
text-align: left;
}
#actions.installer form fieldset{
border: none;
}
#actions.installer form legend {
text-align: left;
border-bottom: 1px solid #DFDFDF;

View File

@@ -276,7 +276,7 @@ class SP_Util
*/
public static function getVersion($retBuild = false)
{
$build = '20';
$build = '21';
$version = array(1, 1, 2);
if ($retBuild) {
@@ -532,14 +532,15 @@ class SP_Util
$path = SP_Init::$SERVERROOT . DIRECTORY_SEPARATOR;
if ($type == 'js') {
header("Content-type: application/x-javascript; charset: UTF-8");
header("Content-type: application/javascript; charset: UTF-8");
} elseif ($type == 'css') {
header("Content-type: text/css; charset: UTF-8");
}
flush();
// ob_start('ob_gzhandler');
if(!ob_start("ob_gzhandler")) ob_start();
if(self::checkZlib() || !ob_start("ob_gzhandler")) {
ob_start();
}
foreach ($files as $file) {
$filePath = $path . $file['href'];
@@ -679,4 +680,14 @@ class SP_Util
});
return $array;
}
/**
* Comprobar si la salida comprimida en con zlib está activada.
* No es compatible con ob_gzhandler()
*
* @return bool
*/
public static function checkZlib(){
return self::boolval(ini_get('zlib.output_compression'));
}
}