[LON-CAPA-cvs] cvs: loncom /interface groupsort.pm lonindexer.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Fri, 06 Jul 2007 08:34:37 -0000


albertel		Fri Jul  6 04:34:37 2007 EDT

  Modified files:              
    /loncom/interface	groupsort.pm lonindexer.pm 
  Log:
  - gettitle only take one arg
  
  
Index: loncom/interface/groupsort.pm
diff -u loncom/interface/groupsort.pm:1.52 loncom/interface/groupsort.pm:1.53
--- loncom/interface/groupsort.pm:1.52	Fri Jun 29 18:41:24 2007
+++ loncom/interface/groupsort.pm	Fri Jul  6 04:34:37 2007
@@ -2,7 +2,7 @@
 # The LON-CAPA group sort handler
 # Allows for sorting prior to import into RAT.
 #
-# $Id: groupsort.pm,v 1.52 2007/06/29 22:41:24 banghart Exp $
+# $Id: groupsort.pm,v 1.53 2007/07/06 08:34:37 albertel Exp $
 # 
 # Copyright Michigan State University Board of Trustees
 #
@@ -66,7 +66,7 @@
 	    my $key = $_;
 	    if ($ahash{$key} eq '1') {
 	        if ($hash{'pre_'.$key.'_title'} eq 'Not_retrieved') {
-	            $hash{'pre_'.$key.'_title'} = &Apache::lonnet::gettitle($hash{'pre_'.$key.'_link'},'title');
+	            $hash{'pre_'.$key.'_title'} = &Apache::lonnet::gettitle($hash{'pre_'.$key.'_link'});
 	        }
 		$hash{'store_'.$hash{'pre_'.$key.'_link'}} =
 		    $hash{'pre_'.$key.'_title'};
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.168 loncom/interface/lonindexer.pm:1.169
--- loncom/interface/lonindexer.pm:1.168	Mon Jul  2 12:07:06 2007
+++ loncom/interface/lonindexer.pm	Fri Jul  6 04:34:37 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.168 2007/07/02 16:07:06 banghart Exp $
+# $Id: lonindexer.pm,v 1.169 2007/07/06 08:34:37 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -923,7 +923,7 @@
         my $title;
 	my $filelink = $pathprefix.$filecom[0];
 	if ($hash{'display_attrs_0'} == 1) {
-	    $title = &Apache::lonnet::gettitle($filelink,'title');
+	    $title = &Apache::lonnet::gettitle($filelink);
 	}
 	my @file_ext = split (/\./,$listname);
 	my $curfext = $file_ext[-1];
@@ -1137,7 +1137,7 @@
 	my $filelink = $startdir.$filecom[0].'/default';
 
 	if ($hash{'display_attrs_0'} == 1) {
-	    my $title = &Apache::lonnet::gettitle($filelink,'title');
+	    my $title = &Apache::lonnet::gettitle($filelink);
 	    $r->print('<td> '.($title eq '' ? '&nbsp;' : $title).
 		      ' </td>'."\n");
 	}