Ignore:
Timestamp:
2006-03-23T11:32:07+12:00 (18 years ago)
Author:
shaoqun
Message:

changed the code getting the greenstone home (document root)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/java/org/nzdl/gsdl/GsdlCollageApplet/GsdlCollageApplet.java

    r11420 r11471  
    109109    String caption_param        = getParameter("caption");
    110110        String document_root        = getParameter("documentroot");
     111        String gwcgi                = getParameter("gwcgi");       
    111112
    112113
     
    188189        if (document_root !=null){         
    189190        document_root = document_root.substring(1);
    190         document_root = document_root.substring(0, document_root.indexOf("/"));
     191            if (document_root.indexOf("/") > 0 ){
     192        document_root = document_root.substring(0, document_root.indexOf("/"));
     193        }
     194        else{
     195        document_root = gwcgi; 
     196        }
    191197    }
    192198
Note: See TracChangeset for help on using the changeset viewer.