[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 22 Nov 2002 19:46:37 -0000


albertel		Fri Nov 22 14:46:37 2002 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - does the right thing now to get the title.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.137 loncom/homework/structuretags.pm:1.138
--- loncom/homework/structuretags.pm:1.137	Wed Nov 13 18:37:56 2002
+++ loncom/homework/structuretags.pm	Fri Nov 22 14:46:36 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.137 2002/11/13 23:37:56 albertel Exp $
+# $Id: structuretags.pm,v 1.138 2002/11/22 19:46:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -118,10 +118,12 @@
   return ($result,$head_tag_start,$body_tag_start,$form_tag_start);
 }
 
+use Time::HiRes();
 sub get_resource_name {
   my ($parstack,$safeeval)=@_;
-  my $name=&Apache::lonxml::get_param('name',$parstack,$safeeval);
-  if ($name eq '') { 
+  my $name=&Apache::lonnet::gettitle();
+  &Apache::lonnet::logthis("Got $name");
+  if ($name eq '') {
     $name=&Apache::lonnet::EXT('resource.title');
     if ($name eq 'con_lost') { $name = ''; }
   }