Changeset 10543


Ignore:
Timestamp:
2005-08-19T17:21:32+12:00 (19 years ago)
Author:
mdewsnip
Message:

Fixed a bug where cgiBase wasn't set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r10541 r10543  
    138138        // We have to use our own collect directory since we can't use the Greenstone one
    139139        setCollectDirectoryPath(getGLIUserDirectoryPath() + "collect" + File.separator);
    140 
    141         // If a gliserver URL has been specified...
    142         if (go.gliserver_url_string != null) {
    143         cgiBase = go.gliserver_url_string.substring(0, go.gliserver_url_string.lastIndexOf('/') + 1);
    144         }
    145140    }
    146141    // No, we have a local Greenstone
     
    292287        // If we're using a remote Greenstone we need to know where the gliserver script is
    293288        DebugStream.println("Configuration.gliserver_url = " + Configuration.gliserver_url);
    294         if (isGsdlRemote && Configuration.gliserver_url == null) {
    295         missingGLIServer();
     289        if (isGsdlRemote) {
     290        if (Configuration.gliserver_url == null) {
     291            missingGLIServer();
     292        }
     293        if (Configuration.gliserver_url != null) {
     294            gliserver_url_string = Configuration.gliserver_url.toString();
     295            cgiBase = gliserver_url_string.substring(0, gliserver_url_string.lastIndexOf('/') + 1);
     296        }
    296297        }
    297298
Note: See TracChangeset for help on using the changeset viewer.