]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
"Configurable SSL error details messages" patch fix
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 17 Jun 2011 15:47:14 +0000 (18:47 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 17 Jun 2011 15:47:14 +0000 (18:47 +0300)
Use "#if USE_ERR_LOCALES" to force TemplateFile::loadFor return false
when the USE_ERR_LOCALES is not defined, and allow compile in this case

src/errorpage.cc

index 7aa71c2aefa0cb19cd6280525b512d917c51c31b..d2d14a619c89c1440e5aed376ce1006f4a2964ac 100644 (file)
@@ -420,6 +420,7 @@ TemplateFile::loadFor(HttpRequest *request)
 {
     String hdr;
 
+#if USE_ERR_LOCALES
     if (loaded()) // already loaded?
         return true;
 
@@ -449,6 +450,7 @@ TemplateFile::loadFor(HttpRequest *request)
             debugs(4, DBG_IMPORTANT, "WARNING: Error Pages Missing Language: " << lang);
         }
     }
+#endif
 
     return loaded();
 }