[LON-CAPA-cvs] cvs: rat / lonuserstate.pm
www
lon-capa-cvs@mail.lon-capa.org
Wed, 09 Nov 2005 11:39:57 -0000
www Wed Nov 9 06:39:57 2005 EDT
Modified files:
/rat lonuserstate.pm
Log:
If LON-CAPA does not know what to do with a file, put a wrapper around, so
navigation gets preserved.
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.96 rat/lonuserstate.pm:1.97
--- rat/lonuserstate.pm:1.96 Fri Sep 23 17:39:09 2005
+++ rat/lonuserstate.pm Wed Nov 9 06:39:57 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Construct and maintain state and binary representation of course for user
#
-# $Id: lonuserstate.pm,v 1.96 2005/09/23 21:39:09 albertel Exp $
+# $Id: lonuserstate.pm,v 1.97 2005/11/09 11:39:57 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -165,7 +165,10 @@
if ($token->[2]->{'external'} eq 'true') { # external
$turi=~s/^http\:\/\//\/adm\/wrapper\/ext\//;
} elsif ($turi=~/^\/*uploaded\//) { # uploaded
- if (($embstyle eq 'img') || ($embstyle eq 'emb')) {
+ if (($embstyle eq 'img')
+ || ($embstyle eq 'emb')
+ || ($embstyle eq 'ign')
+ || ($embstyle eq 'unk')) {
$turi='/adm/wrapper'.$turi;
} elsif ($embstyle eq 'ssi') {
#do nothing with these