On Mon, Jan 03, 2011 at 06:00:51PM -0500, William J. Horka wrote:
> Kevin Falcone wrote:
> >
> >RT::FM expects RT to already be configured when RT/FM.pm is loaded.
> >This should be a better incant, since it allows RT to munge INC to
> >include plugins for you (rather than needing to include paths into
> >plugins)
> >
> >perl -Ilocal/lib -Ilib -e 'BEGIN { use RT; RT::LoadConfig;
> >RT->Init(); }; use RT::FM'
>
> That works much better. Thanks! Perhaps worth noting explicitly: the
> "use RT::FM" statement must be outside the BEGIN block for this to
> succeed.Yes, because RT->Init munges @INC and use RT::FM runs at compile time, before RT->Init can affect @INC. > Now we can finally stop hacking on the old RT 2.x StockAnswers > <http://requesttracker.wikia.com/wiki/StockAnswers> and move to > RTFM! I just need to figure out how to convince RTFM to insert plain > text article body custom fields into tickets literally, without > processing <anglebrackets> as HTML tags and rendering entity > references. There is a 2 or 3 line snippet of code in RTFM that affects html tags, you should be able to find and disable it. -kevin
pgpONCGSfSbsp.pgp
Description: PGP signature
