Author: dieppe
Date: 2008-02-20 15:28:04 +0000 (Wed, 20 Feb 2008)
New Revision: 18082
Modified:
trunk/apps/thingamablog/src/net/sf/thingamablog/gui/properties/TBWizardDialog.java
Log:
Little bugfix
Modified:
trunk/apps/thingamablog/src/net/sf/thingamablog/gui/properties/TBWizardDialog.java
===================================================================
---
trunk/apps/thingamablog/src/net/sf/thingamablog/gui/properties/TBWizardDialog.java
2008-02-20 14:44:17 UTC (rev 18081)
+++
trunk/apps/thingamablog/src/net/sf/thingamablog/gui/properties/TBWizardDialog.java
2008-02-20 15:28:04 UTC (rev 18082)
@@ -528,11 +528,6 @@
{
weblog.setTitle(titleField.getText());
weblog.setDescription(textArea.getText());
- if(weblog.getType().equals("freenet")){
- String url=weblog.getBaseUrl();
- url+=ASCIIconv.convertNonAscii(weblog.getTitle())
+ "/1/";
-
weblog.setBlogUrls(weblog.getBasePath(),url,url,url);
- }
}
public String getTitle()
@@ -812,6 +807,12 @@
public void saveProperties()
{
+ // We change the urls to the good one
+ if(weblog.getType().equals("freenet")){
+ String url=weblog.getBaseUrl();
+ url+=ASCIIconv.convertNonAscii(weblog.getTitle())
+ "/1/";
+
weblog.setBlogUrls(weblog.getBasePath(),url,url,url);
+ }
}
}
}