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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 15 Mar 2005 16:09:21 -0000


albertel		Tue Mar 15 11:09:21 2005 EDT

  Modified files:              
    /loncom/publisher	lonpublisher.pm 
  Log:
  - BUG#4014, was trying to do ssi on everything, not just ssi able docs
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.188 loncom/publisher/lonpublisher.pm:1.189
--- loncom/publisher/lonpublisher.pm:1.188	Wed Mar  9 22:50:49 2005
+++ loncom/publisher/lonpublisher.pm	Tue Mar 15 11:09:20 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.188 2005/03/10 03:50:49 www Exp $
+# $Id: lonpublisher.pm,v 1.189 2005/03/15 16:09:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2012,14 +2012,17 @@
 
 	unless ($ENV{'form.phase'} eq 'two') {
 # ---------------------------------------------------------- Parse for problems
-	    my ($warningcount,$errorcount)=&checkonthis($r,$thisfn);
-            unless ($errorcount) {
+	    my ($warningcount,$errorcount);
+	    if ($thisembstyle eq 'ssi') {
+		($warningcount,$errorcount)=&checkonthis($r,$thisfn);
+	    }
+	    unless ($errorcount) {
 		my ($outstring,$error)=
 		    &publish($thisfn,$thistarget,$thisembstyle);
 		$r->print('<hr />'.$outstring);
 	    } else {
-                $r->print('<h3>'.
-		&mt('The document contains errors and cannot be published.').
+		$r->print('<h3>'.
+			  &mt('The document contains errors and cannot be published.').
 			  '</h3>');
 	    }
 	} else {