Hans pointed this out to me offlist.

To repair this (I'll do for the next release), change line 711 of
engine.php back to the original

        if($reverse == false) return preg_replace('/\~\~([0-9]+)\~\~/e',
'$Token[$1]', $x);

I was trying to solve a difficulty with putting javascript in
snippets. I have a better way of doing that in 2.52.

Cheers,
Dan

P.S. Actually, it turned out to be a bit tricky. First, <nolines> is
not the best approach to escape the javascript, because there may be
other markups in the javascript that would cause problems beside just
line returns. But I can't escape all snippets, because you could have
snippets that contain markups. Like site actions for example...  I
thought of hijacking <code>javascript</code>, but while it looks nice,
the problem is semantically, it's designed to display code not escape
code. I finally ended up jury-rigging a special markup rule in the
snippets function using our normal /= javascript =/ syntax and
stripping slashes. Anyway, So far, it seems to work great. For the
next release.



On Mon, Feb 23, 2009 at 6:34 AM, Linly <[email protected]> wrote:
>
> Because I use "showhide" plugin to show/hide the page actions, so I
> can't test other things. I move back to 2.50.
>
> Cheers,
> linly
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to