--- loncom/xml/lonxml.pm 2003/02/26 17:52:14 1.240
+++ loncom/xml/lonxml.pm 2003/03/29 22:50:22 1.242
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.240 2003/02/26 17:52:14 albertel Exp $
+# $Id: lonxml.pm,v 1.242 2003/03/29 22:50:22 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -257,6 +257,9 @@ sub xmlend {
Note: in anonymous discussion, your name is visible only to
course faculty
+
+Attachment (128 KB max size): +
ENDDISCUSS $discussion.=&Apache::lonfeedback::generate_preview_button(); @@ -795,7 +798,7 @@ sub default_homework_load { my ($safeeval)=@_; &Apache::lonxml::debug('Loading default_homework'); my $default=&Apache::lonnet::getfile('/home/httpd/html/res/adm/includes/default_homework.lcpm'); - if ($default == -1) { + if ($default eq -1) { &Apache::lonxml::error("Unable to find default_homework.lcpm"); } else { &Apache::run::run($default,$safeeval); @@ -1187,7 +1190,7 @@ sub handler { my %mystyle; my $result = ''; my $filecontents=&Apache::lonnet::getfile($file); - if ($filecontents == -1) { + if ($filecontents eq -1) { $result=(<