Permalink
Browse files

Item952: suppressed parameters not provided to error messages

git-svn-id: http://svn.foswiki.org/trunk@2492 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information...
CrawfordCurrie CrawfordCurrie
CrawfordCurrie authored and CrawfordCurrie committed Feb 14, 2009
1 parent a583ec9 commit 2a9171ff6f444206b0a6155d6c1697f1234356cb
Showing with 4 additions and 3 deletions.
  1. +2 −1 core/lib/Foswiki.pm
  2. +2 −2 core/lib/Foswiki/UI/Oops.pm
View
@@ -2131,7 +2131,8 @@ sub inlineAlert {
$text =~ s/%PARAM$n%/$param/g;
$n++;
}
# Suppress missing params
$text =~ s/%PARAM\d+%//g;
}
else {
$text =
@@ -126,8 +126,8 @@ sub oops {
$tmplData =~ s/%PARAM$n%/$param/g;
$n++;
}
$tmplData =~ s/%(PARAM\d+)%/
CGI::span({class=>'foswikiAlert'},"MISSING $1 ")/ge if DEBUG;
# Suppress missing params
$tmplData =~ s/%PARAM\d+%//g;
$tmplData = $session->handleCommonTags( $tmplData, $web, $topic );
$tmplData =
$session->renderer->getRenderedVersion( $tmplData, $web, $topic );

0 comments on commit 2a9171f

Please sign in to comment.