[interchange] * Fix problem where we were stepping on '%' in message even when
Mike Heins <[email protected]> Sat, 12 Sep 2015 16:02:40 +0000
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 576b762f3870c4ccfdece85239b6ed302f36f2d4 Author: Mike Heins <[email protected]> Date: Sat Sep 12 12:01:58 2015 -0400 * Fix problem where we were stepping on '%' in message even when there were no parameters submitted for substitution in sprintf. code/SystemTag/warnings.coretag | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) --- diff --git a/code/SystemTag/warnings.coretag b/code/SystemTag/warnings.coretag index 01af154..b2a5129 100644 --- a/code/SystemTag/warnings.coretag +++ b/code/SystemTag/warnings.coretag @@ -19,7 +19,13 @@ sub { if($message) { my $param = ref $opt->{param} ? $opt->{param} : [$opt->{param}]; - push_warning($message, @$param); + if($opt->{param}) { + my $param = ref $opt->{param} ? $opt->{param} : [$opt->{param}]; + push_warning($message, @$param); + } + else { + push_warning($message); + } return unless $opt->{show}; }