[system] / trunk / pg / macros / PGbasicmacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGbasicmacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5902 Revision 5903
1001 my $PRINT_FILE_NAMES_PERMISSION_LEVEL = PG_restricted_eval(q!$envir->{'PRINT_FILE_NAMES_PERMISSION_LEVEL'}!); 1001 my $PRINT_FILE_NAMES_PERMISSION_LEVEL = PG_restricted_eval(q!$envir->{'PRINT_FILE_NAMES_PERMISSION_LEVEL'}!);
1002 my $printHintForInstructor = $permissionLevel >= $PRINT_FILE_NAMES_PERMISSION_LEVEL; 1002 my $printHintForInstructor = $permissionLevel >= $PRINT_FILE_NAMES_PERMISSION_LEVEL;
1003 my $showHint = PG_restricted_eval(q!$main::showHint!); 1003 my $showHint = PG_restricted_eval(q!$main::showHint!);
1004 my $displayHint = PG_restricted_eval(q!$envir->{'displayHintsQ'}!); 1004 my $displayHint = PG_restricted_eval(q!$envir->{'displayHintsQ'}!);
1005 PG_restricted_eval(q!$main::hintExists =1!); 1005 PG_restricted_eval(q!$main::hintExists =1!);
1006 my $attempts = PG_restricted_eval(q!$main::numOfAttempts = 0 unless defined($main::numOfAttempts);!); 1006 PG_restricted_eval(q!$main::numOfAttempts = 0 unless defined($main::numOfAttempts);!);
1007 my $attempts = PG_restricted_eval(q!$main::numOfAttempts!);
1007 1008
1008 if ($displayMode eq 'TeX') { 1009 if ($displayMode eq 'TeX') {
1009 if ($printHintForInstructor) { 1010 if ($printHintForInstructor) {
1010 $out = join(' ',@in, "$BR(Show hint after $showHint attempts. ) $BR"); 1011 $out = join(' ',@in, "$BR(Show hint after $showHint attempts. ) $BR");
1011 } else { 1012 } else {

Legend:
Removed from v.5902  
changed lines
  Added in v.5903

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9