- fix [ 1328728 ] Export exports root page n times

This commit is contained in:
Matthew Wilson 2005-12-12 06:32:22 +00:00
parent 4b64a1409c
commit d7ebf75b71
3 changed files with 5 additions and 4 deletions

View file

@ -43,7 +43,7 @@ sub handler {
my $r = shift;
$session{site} = shift || $r->dir_config('WebguiConfig');
my $s = Apache2::ServerUtil->server;
# $s->add_version_component("WebGUI/".$WebGUI::VERSION); # had to remove b/c it was appending on every request for that instance of httpd. :(
$s->add_version_component("WebGUI/".$WebGUI::VERSION); # had to remove b/c it was appending on every request for that instance of httpd. :(
$session{wguri} = $r->uri;
$session{config} = WebGUI::Config::getConfig($s->dir_config('WebguiRoot'),$session{site});
### Add Apache Request stuff to global session. Yes, I know the global hash will eventually be deprecated.

View file

@ -204,9 +204,9 @@ sub www_exportStatus {
#-------------------------------------------------------------------
=head2 www_exportPageGenerate
=head2 www_exportGenerate
Executes the export process and displays real time status. This operation is displayed by exportPageStatus in an IFRAME.
Executes the export process and displays real time status. This operation is displayed by exportStatus in an IFRAME.
=cut
@ -263,7 +263,7 @@ sub www_exportGenerate {
printf WebGUI::International::get('could not open path', 'Asset'), $path, $@;
return;
} else {
print FILE $self->exportAsHtml({userId=>$userId,extrasUrl=>$extrasURL,uploadsUrl=>$uploadsURL});
print FILE $asset->exportAsHtml({userId=>$userId,extrasUrl=>$extrasURL,uploadsUrl=>$uploadsURL});
close(FILE);
}
print WebGUI::International::get('done','Asset');