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

raeburn raeburn@source.lon-capa.org
Wed, 04 Nov 2009 15:38:27 -0000


raeburn		Wed Nov  4 15:38:27 2009 EDT

  Modified files:              
    /loncom/interface	lonrss.pm 
  Log:
  - Accommodate Communities
    - (C)course -> (C)community
  
  
Index: loncom/interface/lonrss.pm
diff -u loncom/interface/lonrss.pm:1.48 loncom/interface/lonrss.pm:1.49
--- loncom/interface/lonrss.pm:1.48	Mon Jul 27 12:12:47 2009
+++ loncom/interface/lonrss.pm	Wed Nov  4 15:38:27 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # RSS Feeder
 #
-# $Id: lonrss.pm,v 1.48 2009/07/27 12:12:47 kalberla Exp $
+# $Id: lonrss.pm,v 1.49 2009/11/04 15:38:27 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -61,6 +61,9 @@
     my $name=$filterfilename; 
     if ($name=~/^CourseBlog/) {
         $name=&mt('Course Blog');
+        if ($env{'course.'.$env{'request.course.id'}.'.type'} eq 'Community') {
+            $name = &mt('Community Blog'); 
+        }
 	if ($env{'course.'.$env{'request.course.id'}.'.description'}) {
 	    $name.=' '.$env{'course.'.$env{'request.course.id'}.'.description'};
 	}