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 <endico@mozilla.org> r=myk@mozilla.org
This commit is contained in:
Родитель
d16c9fe908
Коммит
70b600ce7e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче