1
0
mirror of https://github.com/yacy/yacy_search_server.git synced 2025-07-22 09:14:38 -04:00

fix Servlet template on conditional file include with use of conditional template pattern in included template file (example IndexCreateQueues_p.html)

see bug http://bugs.yacy.net/view.php?id=215
This commit is contained in:
reger
2012-12-10 20:02:35 +01:00
parent a4a780b871
commit f1a9c2e604

@ -421,7 +421,7 @@ public final class TemplateEngine {
}
final PushbackInputStream pis2 = new PushbackInputStream(new ByteArrayInputStream(include.getBytes()));
structure.append(ASCII.getBytes("<fileinclude file=\"")).append(filename).append(close_tagn);
structure.append(writeTemplate(pis2, out, pattern, dflt, prefix));
structure.append(writeTemplate(pis2, out, pattern, dflt, new byte[0])); //clear pattern prefix for include
structure.append(ASCII.getBytes("</fileinclude>\n"));
}
}