--- loncom/imspackages/imsimport.pm 2006/04/04 08:18:33 1.19 +++ loncom/imspackages/imsimport.pm 2006/04/10 22:30:20 1.20 @@ -39,10 +39,15 @@ use File::Basename(); sub jscript_one { my ($fullpath,$jsref) = @_; + my %body_layout = ('rightmargin' => "0", + 'leftmargin' => "0", + 'marginwidth' => "0", + 'topmargin' => "0", + 'marginheight' => "0"); my $start_page = &Apache::loncommon::start_page('Create IMS import directory',undef, {'only_body' => 1, - 'add_entries' => "topmargin='0' leftmargin='0' marginheight='0'marginwidth='0' rightmargin='0'", + 'add_entries' => \%body_layout, 'js_ready' => 1,}); my $end_page = &Apache::loncommon::end_page({'js_ready' => 1,}); @@ -821,7 +826,6 @@ sub handler { my $javascript = ''; my $page_name = ''; my $current_page = ''; - my $loadentries = ''; my $qcount = ''; # get personal information for this user @@ -864,7 +868,6 @@ sub handler { unless ($pathname eq '/') { $fullpath .= '/'; } - my $loadentries = ''; my @areas = (); my %cmsmap = (); @@ -886,9 +889,7 @@ sub handler { $javascript = "\n"; my $title = 'Upload IMS package to Construction Space'; - $r->print(&Apache::loncommon::start_page($title, $javascript, - {'add_entries' => - $loadentries,})); + $r->print(&Apache::loncommon::start_page($title, $javascript)); if (($uname ne $env{'user.name'}) || ($udom ne $env{'user.domain'})) { $r->print('