Changeset 30770 for main


Ignore:
Timestamp:
09/01/16 10:14:14 (4 years ago)
Author:
kjdon
Message:

when getting all the strings with a specified prefix, we actually want the prefix to be xxx. not xxx as that may match other unnecessary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java

    r30542 r30770  
    755755    public static String getInterfaceStringsAsJavascript(String interface_name, String lang, String prefix, String prependToPrefix)
    756756    {
     757      String prefixwithdot = prefix+".";
    757758        // 1. Generating Javascript of the form:
    758759        // if(!gs.text) { gs.text = new Array(); }
     
    783784            {
    784785                String key = (String) keys.nextElement();
    785                 if (key.startsWith(prefix))
     786                if (key.startsWith(prefixwithdot))
    786787                {
    787788                    String value = getInterfaceText(interface_name, dictName, lang, key, null);
Note: See TracChangeset for help on using the changeset viewer.