PM-795 se visualizan caracteres extras en el texto de un output document con PHP 5.4 SOLVED

This commit is contained in:
Julio Cesar Laura
2014-10-27 13:38:36 -04:00
parent 9b56c59285
commit c13969b5f4

View File

@@ -2918,7 +2918,11 @@ class G
*/ */
public function unhtmlentities ($string) public function unhtmlentities ($string)
{ {
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
$trans_tbl = get_html_translation_table( HTML_ENTITIES ); $trans_tbl = get_html_translation_table( HTML_ENTITIES );
} else {
$trans_tbl = get_html_translation_table( HTML_ENTITIES, ENT_COMPAT, 'ISO-8859-1' );
}
foreach ($trans_tbl as $k => $v) { foreach ($trans_tbl as $k => $v) {
$ttr[$v] = utf8_encode( $k ); $ttr[$v] = utf8_encode( $k );
} }
@@ -5324,8 +5328,7 @@ class G
return $arrayData; return $arrayData;
} }
public static function buildFrom($configuration, $from = '') public static function buildFrom($configuration, $from = '') {
{
if (!isset($configuration['MESS_FROM_NAME'])) { if (!isset($configuration['MESS_FROM_NAME'])) {
$configuration['MESS_FROM_NAME'] = ''; $configuration['MESS_FROM_NAME'] = '';
} }
@@ -5539,9 +5542,8 @@ class G
/** /**
* Check the browser compativility * Check the browser compativility
*/ */
public function checkBrowserCompatibility($browser = null, $version = null) public function checkBrowserCompatibility($browser = null, $version = null){
{ if($browser == null || $version == null){
if ($browser == null || $version == null) {
$info = G::getBrowser(); $info = G::getBrowser();
$browser = $info['name']; $browser = $info['name'];
$version = $info['version']; $version = $info['version'];
@@ -5549,7 +5551,7 @@ class G
if ((($browser== 'msie') && (($version >= 8) && ($version <= 11))) || if ((($browser== 'msie') && (($version >= 8) && ($version <= 11))) ||
(($browser== 'chrome') && ($version >= 26)) || (($browser== 'chrome') && ($version >= 26)) ||
(($browser== 'firefox') && ($version >= 20)) (($browser== 'firefox') && ($version >= 20))
) { ){
return true; return true;
} }
return false; return false;