Changeset 18719

Show
Ignore:
Timestamp:
19.03.2009 16:00:42 (10 years ago)
Author:
ak19
Message:

Fixed syntax errors introduced on previous commit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/server/Server2Settings.java

    r18710 r18719  
    8686        } catch(NumberFormatException nfe) { // couldn't parse port number 
    8787        // not an integer, leave portnumber at 80 
    88         String oldNum = Integer.toString((Integer)portNumber_spinner.getValue()); 
    89         oldUrl = oldUrl.replace(oldNum, "80"); 
    90         portNumber_spinner.setValue(80); 
     88        String oldNum = portNumber_spinner.getValue().toString(); 
     89        oldUrl = oldUrl.replaceFirst(oldNum, "80"); 
     90        portNumber_spinner.setValue(new Integer(80)); 
    9191        } 
    9292    } else { // no port number 
    93         oldUrl = oldUrl.replace(url, url+":80"); 
    94         portNumber_spinner.setValue(80); 
     93        oldUrl = oldUrl.replaceFirst(url, url+":80"); 
     94        portNumber_spinner.setValue(new Integer(80)); 
    9595    } 
    9696    }