Skip to content

Commit

Permalink
Fixing spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 16, 2010
1 parent 826dbc4 commit 8cae1e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cake/libs/i18n.php
Expand Up @@ -496,15 +496,15 @@ function __loadLocaleDefinition($file, $domain = null) {
continue;
}

$mustEscape = array($escape.',',$escape.';',$escape.'<',$escape.'>',$escape.$escape);
$replacements = array_map('crc32',$mustEscape);
$value = str_replace($mustEscape,$replacements,$value);
$value = explode(';',$value);
$mustEscape = array($escape . ',' , $escape . ';', $escape . '<', $escape . '>', $escape . $escape);
$replacements = array_map('crc32', $mustEscape);
$value = str_replace($mustEscape, $replacements, $value);
$value = explode(';', $value);
$_this->__escape = $escape;
foreach ($value as $i => $val) {
$val = trim($val,'"');
$val = preg_replace_callback('/(?:<)?(.[^>]*)(?:>)?/',array(&$this,'__parseLiteralValue'),$val);
$val = str_replace($replacements,$mustEscape,$val);
$val = trim($val, '"');
$val = preg_replace_callback('/(?:<)?(.[^>]*)(?:>)?/', array(&$this, '__parseLiteralValue'), $val);
$val = str_replace($replacements, $mustEscape, $val);
$value[$i] = $val;
}
if (count($value) == 1) {
Expand Down

0 comments on commit 8cae1e8

Please sign in to comment.