Fix what I broke for multi param formats
This commit is contained in:
parent
ee2578764a
commit
18698ad6ad
@ -98,7 +98,11 @@ class Advisor
|
||||
return sprintf(_gettext(Advisor::escapePercent($str)));
|
||||
} else {
|
||||
$value = $this->ruleExprEvaluate($param);
|
||||
return sprintf(_gettext(Advisor::escapePercent($str)), $value);
|
||||
$printf = 'sprintf("' . _gettext(Advisor::escapePercent($str)) . '",';
|
||||
return $this->ruleExprEvaluate(
|
||||
$printf . $param . ')',
|
||||
strlen($printf)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user