X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?a=blobdiff_plain;f=yarrg%2Fweb%2Fqtextstring;h=c958915ae33fdfa012c0e9ab639db0636d84b95e;hb=5d41f4f9fd6a3f188bba831a1a8902f7890cef8f;hp=d57f863490fda37637957afd0e988be1e1c4f14d;hpb=166893c6f6bd3e9b382aca095dc5ac80a22f89b7;p=ypp-sc-tools.web-live.git diff --git a/yarrg/web/qtextstring b/yarrg/web/qtextstring index d57f863..c958915 100644 --- a/yarrg/web/qtextstring +++ b/yarrg/web/qtextstring @@ -40,7 +40,7 @@ $qa => $m->caller_args(1)->{'qa'} $dbh $thingstring $emsgstore -$perresult +$onresults $prefix => 'ts'; $helpref => undef; @@ -104,7 +104,7 @@ register_onload(<%$p%>Needed); <%perl> if (length $thingstring) { - my ($emsg,$canonstring,$results)= $m->comp('qtextstringcheck', + my ($emsg,$canonstring,@results)= $m->comp('qtextstringcheck', what => $thingstring, ocean => $qa->{Ocean}, string => $stringval, @@ -114,10 +114,6 @@ if (length $thingstring) { $$emsgstore='' unless defined $$emsgstore; $$emsgstore .= $emsg. ' '; } - - foreach my $entry (@$results) { -#print STDERR "qts entry perresult \`@$entry'\n"; - $perresult->(@$entry); - } + $onresults->(@results); }