From 57eab1fc20fd2c7f972a12631b2cca978fb9f8cb Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Mon, 31 Jul 2006 19:19:17 +0200 Subject: [PATCH] Factor out the query string generation from link printing. --- perl/Sesse/pr0n/Common.pm | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 6bcc538..be4385a 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -117,10 +117,10 @@ sub scale_aspect { return ($width, $height); } -sub print_link { - my ($r, $title, $baseurl, $param, $defparam) = @_; - my $str = "$title"; + return $str; +} + +sub print_link { + my ($r, $title, $baseurl, $param, $defparam) = @_; + my $str = "$title"; $r->print($str); } -- 2.39.2