Commits

Anonymous committed 3ecb7b9

whoops, forgot one method so that it supports bundles as well

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@125e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 22ecd9b

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/TextProviderSupport.java

      * @return     value of named text
      */
     public String getText(String aTextName, String defaultValue) {
-        return LocalizedTextUtil.findText(clazz, aTextName, getLocale(), defaultValue, new Object[0]);
+        if (clazz != null) {
+            return LocalizedTextUtil.findText(clazz, aTextName, getLocale(), defaultValue, new Object[0]);
+        }
+
+        return LocalizedTextUtil.findText(bundle, aTextName, getLocale(), defaultValue, new Object[0]);
     }
 
     /**