The branch, master has been updated via 18698ad6ada502eca7d48bbd4c59e98c7c7e4a1b (commit) from ee2578764ab8106ad519daa70077418f9749676f (commit)
- Log ----------------------------------------------------------------- commit 18698ad6ada502eca7d48bbd4c59e98c7c7e4a1b Author: Michal Čihař michal@cihar.com Date: Mon Aug 15 09:30:53 2011 +0200
Fix what I broke for multi param formats
-----------------------------------------------------------------------
Summary of changes: libraries/advisor.class.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libraries/advisor.class.php b/libraries/advisor.class.php index f8f6020..544aa84 100644 --- a/libraries/advisor.class.php +++ b/libraries/advisor.class.php @@ -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) + ); } }
hooks/post-receive