[FFmpeg-devel] [PATCH 2/5] [FATESERVER] index: move $params declaration to lsort()

Timothy Gu timothygu99 at gmail.com
Sun Jun 1 01:45:47 CEST 2014


Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 index.cgi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/index.cgi b/index.cgi
index d61a1ef..c62868b 100755
--- a/index.cgi
+++ b/index.cgi
@@ -77,10 +77,9 @@ sub repcmp {
 };
 
 (my $uri = $ENV{REQUEST_URI}) =~ s/\?.*//;
-my $params = join '&', map param($_), grep $_ !~ 'sort', param;
-$params .= '&' if $params;
-
 sub lsort {
+    my $params = join '&', map param($_), grep $_ !~ 'sort', param;
+    $params .= '&' if $params;
     my ($text, $key, $p) = @_;
     if ($sort eq $key) {
         $p = param('asort') ? 'dsort' : 'asort';
-- 
1.9.1



More information about the ffmpeg-devel mailing list