You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/12/27 13:23:51 UTC

svn commit: r123401 - /lenya/trunk/src/webapp/lenya/content/info/revisions.xsp

Author: gregor
Date: Mon Dec 27 04:23:50 2004
New Revision: 123401

URL: http://svn.apache.org/viewcvs?view=rev&rev=123401
Log:
Fixed broken revisions tab (it was using a no longer existing method call)
Modified:
   lenya/trunk/src/webapp/lenya/content/info/revisions.xsp

Modified: lenya/trunk/src/webapp/lenya/content/info/revisions.xsp
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/content/info/revisions.xsp?view=diff&rev=123401&p1=lenya/trunk/src/webapp/lenya/content/info/revisions.xsp&r1=123400&p2=lenya/trunk/src/webapp/lenya/content/info/revisions.xsp&r2=123401
==============================================================================
--- lenya/trunk/src/webapp/lenya/content/info/revisions.xsp	(original)
+++ lenya/trunk/src/webapp/lenya/content/info/revisions.xsp	Mon Dec 27 04:23:50 2004
@@ -15,7 +15,7 @@
   limitations under the License.
 -->
 
-<!-- $Id: revisions.xsp,v 1.5 2004/03/13 12:31:30 gregor Exp $ -->
+<!-- $Id$ -->
 
 <xsp:page 
   language="java" 
@@ -32,6 +32,7 @@
   <xsp:structure>
     <xsp:include>org.apache.lenya.cms.rc.RevisionController</xsp:include>
     <xsp:include>java.io.IOException</xsp:include>
+    <xsp:include>java.io.File</xsp:include>
     <xsp:include>org.apache.cocoon.environment.Session</xsp:include>
     <xsp:include>org.apache.lenya.cms.publication.Publication</xsp:include>
     <xsp:include>org.apache.lenya.cms.rc.RCEnvironment</xsp:include>
@@ -44,14 +45,14 @@
     String docId = (String)<input:get-attribute module="page-envelope" as="object" name="document-id"/>;
     Publication publication = (Publication)<input:get-attribute module="page-envelope" as="object" name="publication"/>;
 
-      String rootDir=publication.getEnvironment().getPublicationPath();
+      String rootDir=publication.getDirectory().getCanonicalPath() + File.separator;
 
       String servletContextPath = publication.getServletContext().getCanonicalPath();
       
       RCEnvironment rcEnvironment = new RCEnvironment(servletContextPath);
-      String rcmlDirectory = rcEnvironment.getRCMLDirectory();
+      String rcmlDirectory = "content" + File.separator + "rcml";
       rcmlDirectory=rootDir+rcmlDirectory;
-      String backupDirectory = rcEnvironment.getBackupDirectory();
+      String backupDirectory = "content" + File.separator + "rcbak";
       backupDirectory=rootDir+backupDirectory;
 
       RevisionController rc = new RevisionController(rcmlDirectory, backupDirectory, rootDir);

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org