Ignore:
Timestamp:
2013-05-07T13:46:58+02:00 (11 years ago)
Author:
stoecker
Message:

fix #8685 - wiki browser links not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java

    r5915 r5936  
    4747        BufferedReader in = null;
    4848        try {
    49             con = Utils.openHttpConnection(new URL(helpTopicUrl));
     49            URL u = new URL(helpTopicUrl);
     50            con = Utils.openHttpConnection(u);
    5051            con.connect();
    5152            in = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8"));
    52             return prepareHelpContent(in, dotest);
     53            return prepareHelpContent(in, dotest, u);
    5354        } catch(MalformedURLException e) {
    5455            throw new HelpContentReaderException(e);
     
    7980     * @throws HelpContentReaderException thrown if an exception occurs
    8081     * @throws MissingHelpContentException thrown, if the content read isn't a help page
     82     * @since 5935
    8183     */
    82     protected String prepareHelpContent(BufferedReader in, boolean dotest) throws HelpContentReaderException {
     84    protected String prepareHelpContent(BufferedReader in, boolean dotest, URL url) throws HelpContentReaderException {
    8385        String s = "";
    8486        try {
    85             s = readFromTrac(in);
     87            s = readFromTrac(in, url);
    8688        } catch(IOException e) {
    8789            throw new HelpContentReaderException(e);
Note: See TracChangeset for help on using the changeset viewer.