Changeset 4700


Ignore:
Timestamp:
2003-06-18T11:49:19+12:00 (21 years ago)
Author:
kjdon
Message:

no longer use ConfigVars, so methods that used that no take all teh needed arguments individually

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/util/GSFile.java

    r4245 r4700  
    155155     *
    156156     * this is not so good because sites may be on a different computer */
    157     static public String stylesheetFile(ConfigVars config, String filename) {
     157    static public String stylesheetFile(String gsdl3_home,
     158                    String site_name,
     159                    String interface_name,
     160                    String filename) {
    158161    // try site one first
    159     String site_home = siteHome(config.gsdl3_home_, config.site_name_);
     162    String site_home = siteHome(gsdl3_home, site_name);
    160163    File stylesheet = new File(site_home +File.separatorChar+
    161164                   "transform"+File.separatorChar+filename);
     
    164167    }
    165168    // try current interface
    166     String interface_home = interfaceHome(config.gsdl3_home_,
    167                           config.interface_name_);
     169    String interface_home = interfaceHome(gsdl3_home,
     170                          interface_name);
    168171    stylesheet = new File(interface_home+File.separatorChar+
    169172                  "transform"+File.separatorChar+filename);
     
    172175    }
    173176    // try default interface
    174     interface_home = interfaceHome(config.gsdl3_home_, "default");
     177    interface_home = interfaceHome(gsdl3_home, "default");
    175178    stylesheet = new File(interface_home+File.separatorChar+
    176179                  "transform"+File.separatorChar+filename);
Note: See TracChangeset for help on using the changeset viewer.