[LON-CAPA-cvs] cvs: rat / lonpage.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 10 Dec 2004 19:59:55 -0000
albertel Fri Dec 10 14:59:55 2004 EDT
Modified files:
/rat lonpage.pm
Log:
- pass symb along
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.63 rat/lonpage.pm:1.64
--- rat/lonpage.pm:1.63 Fri Dec 10 14:29:19 2004
+++ rat/lonpage.pm Fri Dec 10 14:59:55 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Page Handler
#
-# $Id: lonpage.pm,v 1.63 2004/12/10 19:29:19 albertel Exp $
+# $Id: lonpage.pm,v 1.64 2004/12/10 19:59:55 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -241,8 +241,12 @@
&Apache::loncommon::fileembstyle($extension);
if ($cellemb{$_} eq 'ssi') {
# --------------------------------------------------------- This is an SSI cell
+ my ($mapid,$resid)=split(/\./,$_);
+ my $symb=&Apache::lonnet::encode_symb($hash{'map_id_'.$mapid},$resid,$src);
+
my $prefix=$_.'_';
- my %posthash=('request.prefix' => $prefix);
+ my %posthash=('request.prefix' => $prefix,
+ 'symb' => $symb);
if ($ENV{'form.grade_target'} eq 'tex') {
$posthash{'grade_target'}=$ENV{'form.grade_target'};
$posthash{'textwidth'}=$ENV{'form.textwidth'};