Ferenc Engard wrote:

> > See the INSTALL file in the midgard-php4 directory:
> >
> >    *NOTE* midgard-php4 now builds for mod_midgard-preparser by default.
> >    Add --with-old-mod-midgard in mkall (you'll find it in the comment) if
> >    you want to use the 1.4.2 mod_midgard. The non-preparsing mod is going
> >    to be phased out in the non-distant future.
>
> So, I can safely use the new preparser? Does it work with nadmin?

Armand found a bug this morning, so you'll have to fetch latest CVS.
Alternately, you can compile midgard -php4 with the
--with-old-mod-midgard configure switch. Of course, I'd rather have more
people testing mmp. The more people report success or failure, the
sooner I can do a new release.

> For your other mail: it means that I should not use eval() in my php
> scripts, use instead eval(mgd_preparse())?

More specifically: eval($somecode) used to be replaced (internally) by
mgd_eval("?>$somecode<?). That should now be replaced by
eval("?>".mgd_preparse($somecode)."<?").

You can use eval of course, but it won't expand midgard-specific stuff
like the template calls, and the varformatters, etc. That's what mgd_preparse
does; it changes these to straight PHP code.

Emile



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to