Skip to content

Commit

Permalink
Fixed use of single quotes in o2_translate()
Browse files Browse the repository at this point in the history
  • Loading branch information
tvannini committed Apr 19, 2019
1 parent d3a54d1 commit ed6b1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/jxapp.inc
Expand Up @@ -10807,9 +10807,9 @@ class o2_inspector {
} }
// ___________________________________________________ Function o2_translate() ___ // ___________________________________________________ Function o2_translate() ___
preg_match_all( preg_match_all(
'/o2_translate\s*\(\s*["\'](.+?)["\']\s*,\s*["\'](.+?)["\']\s*([^)]*)\)/', '/o2_translate\s*\(\s*["\'](.+?)["\']\s*,\s*(["\'])(.+?)\2\s*([^)]*)\)/',
$code, $parts); $code, $parts);
foreach ($parts[2] as $idx => $base_string) { foreach ($parts[3] as $idx => $base_string) {
$list[$parts[1][$idx]]['string'][0] = $base_string; $list[$parts[1][$idx]]['string'][0] = $base_string;
} }
$this->mlt_process_list($prg_name, $list); $this->mlt_process_list($prg_name, $list);
Expand Down

0 comments on commit ed6b1b0

Please sign in to comment.