Author: andreas
Date: Fri Aug 10 09:28:50 2007
New Revision: 564659
URL: http://svn.apache.org/viewvc?view=rev&rev=564659
Log:
Removed unnecessary modification check from site tree (handled by transaction)
Modified:
lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java
Modified: lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java?view=diff&rev=564659&r1=564658&r2=564659
==============================================================================
--- lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java (original)
+++ lenya/trunk/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeImpl.java Fri Aug 10 09:28:50 2007
@@ -171,9 +171,6 @@
}
try {
Node repoNode = getRepositoryNode();
- if (repoNode.exists() && repoNode.getLastModified() > this.lastModified) {
- throw new RuntimeException("The sitetree repository node has been modified!");
- }
NamespaceHelper helper = new NamespaceHelper(NAMESPACE, "", "site");
saveNodes(getRoot(), helper, helper.getDocument().getDocumentElement());
helper.save(repoNode.getOutputStream());
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.