From 70b600ce7e39bec542b20c78b9a73d5938dc0c1a Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" Date: Fri, 31 Aug 2001 00:46:09 +0000 Subject: [PATCH] Fix for bug 26189: "cannot view images with lxr". The image-handling code was running too early and didn't have access to the "raw" URL parameter by which images get displayed. Patch by Dawn Endico r=myk@mozilla.org --- webtools/lxr/lib/LXR/Common.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webtools/lxr/lib/LXR/Common.pm b/webtools/lxr/lib/LXR/Common.pm index d961161f253..42538cb0ee5 100755 --- a/webtools/lxr/lib/LXR/Common.pm +++ b/webtools/lxr/lib/LXR/Common.pm @@ -1,4 +1,4 @@ -# $Id: Common.pm,v 1.22 2000-08-24 22:43:47 endico%mozilla.org Exp $ +# $Id: Common.pm,v 1.23 2001-08-31 00:46:09 myk%mozilla.org Exp $ package LXR::Common; @@ -400,8 +400,6 @@ sub fixpaths { sub glimpse_init { - ($Conf, $HTTP, $Path) = &init_all; - $HTTP->{'this_url'} = join('', 'http://', $ENV{'SERVER_NAME'}, ':', $ENV{'SERVER_PORT'}, @@ -419,6 +417,7 @@ sub glimpse_init { push(@a, $_); } $HTTP->{'param'} = {@a}; + init_all(); return($Conf, $HTTP, $Path); } @@ -427,7 +426,6 @@ sub glimpse_init { sub init { my @a; - ($Conf, $HTTP, $Path) = &init_all; $HTTP->{'this_url'} = &http_wash(join('', 'http://', $ENV{'SERVER_NAME'}, ':', $ENV{'SERVER_PORT'}, @@ -438,6 +436,7 @@ sub init { push(@a, &http_wash($_)); } $HTTP->{'param'} = {@a}; + init_all(); return($Conf, $HTTP, $Path); }