Changeset 12430


Ignore:
Timestamp:
Oct 13, 2011, 8:18:54 PM (9 years ago)
Author:
rvelices
Message:

bug 2469 (merge from trunk) compiled_template_cache_language option does not work properly on some language keys because of double escaping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/include/template.class.php

    r12428 r12430  
    772772    $source = preg_replace_callback( $regex, create_function('$m', 'global $lang; return isset($lang[$m[1]]) ? \'{\'.var_export($lang[$m[1]],true).\'|\' : \'$m[0]\';'), $source);
    773773
    774     $regex = "~($ldq *assign +var=.+ +value=)\'([^'$]+)\'\|@translate~e";
     774    $regex = "~($ldq *assign +var=.+ +value=)\'([^'$]+)\'\|@translate~";
    775775    $source = preg_replace_callback( $regex, create_function('$m', 'global $lang; return isset($lang[$m[2]]) ? $m[1].var_export($lang[$m[2]],true) : \'$m[0]\';'), $source);
    776776
Note: See TracChangeset for help on using the changeset viewer.