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

www lon-capa-cvs@mail.lon-capa.org
Fri, 13 Feb 2004 14:59:48 -0000


www		Fri Feb 13 09:59:48 2004 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  Bug #1645: do not say "NO RESOURCE" anymore (not needed anymore since
  automatically cleaned up)
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.105 loncom/interface/londocs.pm:1.106
--- loncom/interface/londocs.pm:1.105	Thu Feb 12 14:20:40 2004
+++ loncom/interface/londocs.pm	Fri Feb 13 09:59:48 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.105 2004/02/12 19:20:40 albertel Exp $
+# $Id: londocs.pm,v 1.106 2004/02/13 14:59:48 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -395,7 +395,7 @@
         foreach (@Apache::lonratedt::order) {
            my ($name,$url)=split(/\:/,$Apache::lonratedt::resources[$_]);
            unless ($name) {  $name=(split(/\//,$url))[-1]; }
-           unless ($name) { $name='NO RESOURCE'; $url='/adm/notfound.html'; }
+           unless ($name) { next; }
            $r->print(&entryline($idx,$name,$url,$folder,$allowed,$_));
            $idx++;
         }
@@ -1026,7 +1026,7 @@
 }
 
 function removeres(folder,index,oldtitle) {
-    if ((oldtitle=='NO RESOURCE') || (confirm('Remove "'+oldtitle+'"?'))) {
+    if (confirm('Remove "'+oldtitle+'"?')) {
 	this.document.forms.renameform.cmd.value='del_'+index;
 	this.document.forms.renameform.folder.value=folder;
         this.document.forms.renameform.submit();