--- loncom/html/res/adm/pages/bookmarkmenu/admbookmarks.pm 2003/06/23 19:03:33 1.29
+++ loncom/html/res/adm/pages/bookmarkmenu/admbookmarks.pm 2005/04/07 06:56:22 1.30
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The bookmarks handler
#
-# $Id: admbookmarks.pm,v 1.29 2003/06/23 19:03:33 www Exp $
+# $Id: admbookmarks.pm,v 1.30 2005/04/07 06:56:22 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -35,7 +35,7 @@ package Apache::admbookmarks;
use strict;
use Apache::Constants qw(:common);
-use Apache::lonnet();
+use Apache::lonnet;
# --------------------------------------------------------------Put bookmarks
@@ -180,8 +180,8 @@ sub handler {
my $page;
$r->content_type('text/html');
$r->send_http_header;
- if (defined($ENV{'form.hiddenbookmarks'})) {
- $marks{'bookmarks'}=$ENV{'form.hiddenbookmarks'};
+ if (defined($env{'form.hiddenbookmarks'})) {
+ $marks{'bookmarks'}=$env{'form.hiddenbookmarks'};
write_bookmarks($marks{'bookmarks'});
$page=construct_toolbar();
} else {
@@ -191,8 +191,8 @@ sub handler {
# in order to re-enable connection detection
$page=construct_error("Connection broken with home server. Please contact your system administrator");
} else {
- if (defined($ENV{'form.address'})) {
- $page=add_bookmark($ENV{'form.address'},$ENV{'form.title'},$marks{'bookmarks'});
+ if (defined($env{'form.address'})) {
+ $page=add_bookmark($env{'form.address'},$env{'form.title'},$marks{'bookmarks'});
} else {
if ($marks{'bookmarks'} eq "") {
$marks{'bookmarks'}=defaultmarks();