Changeset 3088 for trunk/phpgwapi


Ignore:
Timestamp:
07/23/10 18:39:24 (14 years ago)
Author:
amuller
Message:

Ticket #1149 - Implementando expr reg que tira elementos não usáveis pelo browser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.Template.inc.php

    r2 r3088  
    250250                                } 
    251251                        } 
    252                         return $str; 
     252                        if ($GLOBALS['phpgw_info']['server']['html_minifier'] == "True"){ 
     253                                $pattern = '/(<!--.*-->|[\n\t])/i'; 
     254                                return preg_replace($pattern, '', $str); 
     255                        } 
     256                        else 
     257                                return $str; 
    253258                } 
    254259 
Note: See TracChangeset for help on using the changeset viewer.