[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Wed, 29 Jun 2005 17:46:23 -0000


raeburn		Wed Jun 29 13:46:23 2005 EDT

  Modified files:              
    /loncom/publisher	lonpublisher.pm 
  Log:
  Call to &Apache::loncommon::fileembstyle(page) returns 'ssi'.  This was preventing publication of pages.
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.199 loncom/publisher/lonpublisher.pm:1.200
--- loncom/publisher/lonpublisher.pm:1.199	Mon Jun 27 17:40:39 2005
+++ loncom/publisher/lonpublisher.pm	Wed Jun 29 13:46:20 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.199 2005/06/27 21:40:39 www Exp $
+# $Id: lonpublisher.pm,v 1.200 2005/06/29 17:46:20 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2067,6 +2067,7 @@
 	$thisfn=~/\.(\w+)$/;
 	my $thistype=$1;
 	my $thisembstyle=&Apache::loncommon::fileembstyle($thistype);
+        if ($thistype eq 'page') {  $thisembstyle = 'rat'; }
 	$r->print('<h2>'.&mt('Publishing').' '.
 		  &Apache::loncommon::filedescription($thistype).' <tt>');