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

www lon-capa-cvs@mail.lon-capa.org
Mon, 18 Nov 2002 15:21:31 -0000


www		Mon Nov 18 10:21:31 2002 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  Bug #961 - better handling of "EMPTY" resources.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.36 loncom/interface/londocs.pm:1.37
--- loncom/interface/londocs.pm:1.36	Fri Oct 25 09:39:36 2002
+++ loncom/interface/londocs.pm	Mon Nov 18 10:21:31 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.36 2002/10/25 13:39:36 www Exp $
+# $Id: londocs.pm,v 1.37 2002/11/18 15:21:31 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -173,7 +173,7 @@
         foreach (@Apache::lonratedt::order) {
            my ($name,$url)=split(/\:/,$Apache::lonratedt::resources[$_]);
            unless ($name) {  $name=(split(/\//,$url))[-1]; }
-           unless ($name) { $name='EMPTY'; }
+           unless ($name) { $name='NO RESOURCE'; $url='/adm/notfound.html'; }
            $r->print(&entryline($idx,$name,$url,$folder,$allowed));
            $idx++;
         }