From 3a12fe94ef515ea776689049a22c248e30fb32c2 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 30 Sep 2003 10:45:00 +0000 Subject: [PATCH] compile _as_string variants for legacy templates (.hsp) --- src/helma/scripting/rhino/RhinoCore.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/helma/scripting/rhino/RhinoCore.java b/src/helma/scripting/rhino/RhinoCore.java index 979fb04b..e3b8b721 100644 --- a/src/helma/scripting/rhino/RhinoCore.java +++ b/src/helma/scripting/rhino/RhinoCore.java @@ -693,6 +693,11 @@ public final class RhinoCore { try { updateEvaluator(prototype, info, new StringReader(fa.function), action.getSourceName(), 0); + if (fa.functionAsString != null) { + // templates have an _as_string variant that needs to be compiled + updateEvaluator(prototype, info, new StringReader(fa.functionAsString), + action.getSourceName(), 0); + } } catch (Exception esx) { app.logEvent("Error parsing " + action + ": " + esx); }