[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 20 Sep 2002 18:19:25 -0000


albertel		Fri Sep 20 14:19:25 2002 EDT

  Modified files:              
    /loncom/homework	default_homework.lcpm 
  Log:
  - idea on how one might support &web references to images
  
  
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.48 loncom/homework/default_homework.lcpm:1.49
--- loncom/homework/default_homework.lcpm:1.48	Wed Jul 17 14:08:39 2002
+++ loncom/homework/default_homework.lcpm	Fri Sep 20 14:19:25 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
 #
-# $Id: default_homework.lcpm,v 1.48 2002/07/17 18:08:39 albertel Exp $
+# $Id: default_homework.lcpm,v 1.49 2002/09/20 18:19:25 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -686,4 +686,13 @@
   return $_[$num];
 }
 
+# expiremental idea
+sub proper_path {
+  my ($path)=@_;
+  if ( $external::target eq "tex" ) {
+    return '/home/httpd/html'.$path;
+  } else {
+    return $path;
+  }
+}