On Mon, 2002-05-06 at 10:23, Sergei Dolmatov wrote: > Hello! > > We have now 3 predefined elements: code-compat, code-global, > code-init. > > I'm not sure about reasons why there isn't 4th - something like > code-finish. (May be someone could explain it to me?)
You can add it yourself at the bottom of the <[ROOT]> element of your style, ie: <html> <head> <[headers]> </head> <body <[body-attributes]>> <[body]> </body> </html> <[code-finish]> > But it may be very useful sometimes for common finish code > (DB disconnecting and so on). > > Here is _very_ small patch for midgard-root.php. Looks like it's > working. Actually, only the <[ROOT]> element is mandatory in the midgard-root.php, others elements are just here for backward compatibility (they could be added in the style's ROOT element, see above), so this patch is IMHO not really necessary. Regards, David > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > --- midgard-root.php.orig Mon May 6 16:38:44 2002 > +++ midgard-root.php Mon May 6 16:42:18 2002 > @@ -36,3 +36,4 @@ > <[code-global]> > <[code-init]> > <[ROOT]> > +<[code-finish]> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > -- > Regards, > Sergei Dolmatov. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
