Skip to content

Commit

Permalink
Fix i18n bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kookxiang committed Jun 20, 2016
1 parent 5feaf06 commit 0981411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Core/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private static function createDir($dir, $permission = 0777)
private static function parseI18nParams($matchString)
{
$params = array();
preg_match_all('/(\w+)="?([A-Za-z\-_.]+)"?/', $matchString, $matches);
preg_match_all('/(\w+)="(.+?)"/', $matchString, $matches);
foreach ($matches[0] as $key => $value) {
$params[$matches[1][$key]] = $matches[2][$key];
}
Expand Down

0 comments on commit 0981411

Please sign in to comment.