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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 17 Dec 2004 21:42:51 -0000


albertel		Fri Dec 17 16:42:51 2004 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - add symb to smp edit
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.277 loncom/homework/structuretags.pm:1.278
--- loncom/homework/structuretags.pm:1.277	Sat Dec 11 13:10:49 2004
+++ loncom/homework/structuretags.pm	Fri Dec 17 16:42:50 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.277 2004/12/11 18:10:49 banghart Exp $
+# $Id: structuretags.pm,v 1.278 2004/12/17 21:42:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1375,8 +1375,9 @@
         (&Apache::lonnet::allowed('srm',$ENV{'request.course.id'}))) {
         my $url=$ENV{'request.noversionuri'};
         $url=~s/\?.*$//;
+	my ($symb) = &Apache::lonxml::whichuser();
 	$result='<table width="100%" bgcolor="#FFFFAA" border="2"><tr><td>'.
-                '<a href="'.$url.'/smpedit">'.&mt('Edit').'</a> - '.&mt('Note: it can take up to 10 minutes for changes to take effect for all users.').
+                '<a href="'.$url.'/smpedit?symb='.&Apache::lonnet::escape($symb).'">'.&mt('Edit').'</a> - '.&mt('Note: it can take up to 10 minutes for changes to take effect for all users.').
 &Apache::loncommon::help_open_topic('Caching').'</td></tr></table><br />';
     }
     return $result;