Date: Wed, 16 Apr 2014 21:57:54 +0000 (UTC) From: Dag-Erling Smørgrav <des@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r264568 - in user/des/fbp/lib: FBP/Controller Template/Plugin Message-ID: <201404162157.s3GLvs3t059450@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: des Date: Wed Apr 16 21:57:53 2014 New Revision: 264568 URL: http://svnweb.freebsd.org/changeset/base/264568 Log: Remove some unnecessary debugging output and silence a deprecation warning. Modified: user/des/fbp/lib/FBP/Controller/Poll.pm user/des/fbp/lib/FBP/Controller/Root.pm user/des/fbp/lib/Template/Plugin/WikiFormat.pm Modified: user/des/fbp/lib/FBP/Controller/Poll.pm ============================================================================== --- user/des/fbp/lib/FBP/Controller/Poll.pm Wed Apr 16 21:47:51 2014 (r264567) +++ user/des/fbp/lib/FBP/Controller/Poll.pm Wed Apr 16 21:57:53 2014 (r264568) @@ -38,7 +38,7 @@ sub poll :Chained('/') :Path :CaptureArg # Retrieve user's existing vote, if any my $answers = ($$psession{answers} = {}); foreach my $question ($poll->questions) { - my $votes = $c->user->votes->search(question => $question->id); + my $votes = $c->user->votes->search({ question => $question->id }); $answers->{$question->id} = [ $votes->get_column('option')->all() ] if $votes; } Modified: user/des/fbp/lib/FBP/Controller/Root.pm ============================================================================== --- user/des/fbp/lib/FBP/Controller/Root.pm Wed Apr 16 21:47:51 2014 (r264567) +++ user/des/fbp/lib/FBP/Controller/Root.pm Wed Apr 16 21:57:53 2014 (r264568) @@ -30,7 +30,6 @@ Common code for every action sub auto :Private { my ($self, $c) = @_; - $c->log->debug("FBP::Controller::Root::auto()"); # Stash various constants $c->stash(title => $c->config->{'title'}); Modified: user/des/fbp/lib/Template/Plugin/WikiFormat.pm ============================================================================== --- user/des/fbp/lib/Template/Plugin/WikiFormat.pm Wed Apr 16 21:47:51 2014 (r264567) +++ user/des/fbp/lib/Template/Plugin/WikiFormat.pm Wed Apr 16 21:57:53 2014 (r264568) @@ -56,7 +56,6 @@ The filter function. sub filter($$) { my ($self, $raw) = @_; - print(STDERR "Template::Plugin::WikiFormat::filter()\n"); return Text::WikiFormat::format($raw, $TAGS, $OPTIONS); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404162157.s3GLvs3t059450>