Author: ssolsagl
Date: 2007-04-26 12:05:45 +0200 (Thu, 26 Apr 2007)
New Revision: 4888

Modified:
   
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
Log:
changed paramnames , turn on/off border

Modified: 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
===================================================================
--- 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
 2007-04-26 09:08:15 UTC (rev 4887)
+++ 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/view/velocity/URLVelocityTemplateLoaderDebug.java
 2007-04-26 10:05:45 UTC (rev 4888)
@@ -35,10 +35,16 @@
        public InputStream getResourceStream(String url) throws 
ResourceNotFoundException {
                log.info("getResourceStream() " + url);
 
+               String  showBorder = 
System.getProperty("VELOCITY_DEBUG_BORDER");
+               
+               if("false".equals(showBorder)) {
+                       return super.getResourceStream(url);
+               }
+               
                String relUrl = url.replaceAll("http://(.*?)/", "/");           
 
                InputStream stream = null;
-               String base = System.getProperty("OVERRIDE_VELOCITY_TEMPLATES");
+               String base = System.getProperty("VELOCITY_DEBUG_TEMPLATES");
                
                if(base == null) {
                        stream = super.getResourceStream(url);

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to