[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
albertel
lon-capa-cvs-allow@mail.lon-capa.org
Mon, 21 May 2007 22:57:18 -0000
albertel Mon May 21 18:57:18 2007 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
- fix logic on when receipts should be displayed
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.223 loncom/homework/inputtags.pm:1.224
--- loncom/homework/inputtags.pm:1.223 Tue Apr 17 20:32:02 2007
+++ loncom/homework/inputtags.pm Mon May 21 18:57:17 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.223 2007/04/18 00:32:02 albertel Exp $
+# $Id: inputtags.pm,v 1.224 2007/05/21 22:57:17 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -629,14 +629,17 @@
}
$added_computer_text=1;
my ($symb) = &Apache::lonnet::whichuser();
- if ((!$env{'course.'.
- $env{'request.course.id'}.
- '.disable_receipt_display'} eq 'yes')&&
- $symb) {
+ if (($symb ne '')
+ &&
+ ($env{'course.'.$env{'request.course.id'}.
+ '.disable_receipt_display'} ne 'yes')) {
$message.=(($target eq 'web')?'<br />':' ').
&mt('Your receipt is').' '.&Apache::lonnet::receipt($Apache::inputtags::part).
(($target eq 'web')?&Apache::loncommon::help_open_topic('Receipt'):'');
}
+ &Apache::lonnet::logthis(" er \n$symb\n$message\n".$env{'course.'.
+ $env{'request.course.id'}.
+ '.disable_receipt_display'});
}
$button=0;
$previousmsg='';