- Timestamp:
- 2008-06-13T01:23:33+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/GettingStarted.java
r652 r654 104 104 String url = matcher.group(1) + languageCode + matcher.group(2); 105 105 try { 106 content += wr.read(url).replace("<html>", "").replace("</html>", "").replace("<div id=\"searchable\">", "").replace("</div>", ""); 107 nothingIncluded = false; 106 String message = wr.read(url); 107 // a return containing the article name indicates that the page didn't 108 // exist in the Wiki. 109 String emptyIndicator = "Describe \"" + languageCode + "MessageOfTheDay"; 110 if (message.indexOf(emptyIndicator) >= 0) { 111 url = matcher.group(1) + matcher.group(2); 112 message = wr.read(url); 113 emptyIndicator = "Describe \"MessageOfTheDay"; 114 } 115 if (message.indexOf(emptyIndicator) == -1) { 116 content += message.replace("<html>", "").replace("</html>", "").replace("<div id=\"searchable\">", "").replace("</div>", ""); 117 nothingIncluded = false; 118 } 108 119 } catch (IOException ioe) { 109 120 url = matcher.group(1) + matcher.group(2);
Note:
See TracChangeset
for help on using the changeset viewer.