[LON-CAPA-cvs] cvs: loncom /homework inputtags.pm
banghart
lon-capa-cvs@mail.lon-capa.org
Tue, 27 Feb 2007 19:43:16 -0000
banghart Tue Feb 27 14:43:16 2007 EDT
Modified files:
/loncom/homework inputtags.pm
Log:
Bug 5204. Don't show problem receipt numbers where meaningless.
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.215 loncom/homework/inputtags.pm:1.216
--- loncom/homework/inputtags.pm:1.215 Tue Feb 27 12:52:16 2007
+++ loncom/homework/inputtags.pm Tue Feb 27 14:43:16 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.215 2007/02/27 17:52:16 banghart Exp $
+# $Id: inputtags.pm,v 1.216 2007/02/27 19:43:16 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -623,10 +623,11 @@
$message.= $computer;
}
$added_computer_text=1;
+ my ($symb) = &Apache::lonnet::whichuser();
if ((!$env{'course.'.
$env{'request.course.id'}.
'.disable_receipt_display'} eq 'yes')&&
- $env{'request.course.id'}) {
+ $symb) {
$message.=(($target eq 'web')?'<br />':' ').
&mt('Your receipt is').' '.&Apache::lonnet::receipt($Apache::inputtags::part).
(($target eq 'web')?&Apache::loncommon::help_open_topic('Receipt'):'');