W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2009

2006/unicorn/org/w3c/unicorn UnicornCall.java,1.23,1.24

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 28 Jul 2009 10:56:58 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MVkMc-0007OX-Es@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv28313/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
Modifying UNICORN_PARAMETER_PREFIX now works

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- UnicornCall.java	25 Sep 2008 17:37:43 -0000	1.23
+++ UnicornCall.java	28 Jul 2009 10:56:56 -0000	1.24
@@ -384,7 +384,7 @@
 			// lang of the observer (if it has one).
 			// ucn_lang is defined in forms of index templates
 			// (xx_index.html.vm)
-			String[] valOfUcnLang = this.mapOfStringParameter.get("ucn_lang");
+			String[] valOfUcnLang = this.mapOfStringParameter.get(Property.get("UNICORN_PARAMETER_PREFIX") + "lang");
 
 			// Get name of the lang parameter (defined in RDF file)
 			String observerParamLangName = aObserver.getParamLangName();
@@ -762,7 +762,7 @@
 			aMimeType = new MimeType(sMimeType);
 			break;
 		case DIRECT:
-			sMimeType = this.mapOfStringParameter.get("ucn_mime")[0];
+			sMimeType = this.mapOfStringParameter.get(Property.get("UNICORN_PARAMETER_PREFIX") + "mime")[0];
 			if (null == sMimeType || "".equals(sMimeType)) {
 				UnicornCall.logger
 						.error("No mimetype specified for direct input.");
Received on Tuesday, 28 July 2009 10:57:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:09 GMT