Index: branches/5.1.x/core/kernel/languages/phrases_cache.php =================================================================== diff -u -N -r12127 -r12453 --- branches/5.1.x/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 12127) +++ branches/5.1.x/core/kernel/languages/phrases_cache.php (.../phrases_cache.php) (revision 12453) @@ -1,6 +1,6 @@ 0) - { - $label = substr($label, 1, -1); //cut exclamation marks + // cut exclamation marks - depricated form of passing phrase name from templates + $label = preg_replace('/^!(.*)!$/', '\\1', $label); + + if (strlen($label) == 0) { + return ''; } - if( strlen($label) == 0 ) return ''; - $original_label = $label; $label = mb_strtoupper($label); if(isset($this->Phrases[$label])) {