Page 1 of 1

$config['old_stylesheet']

Posted: Sat May 20, 2006 4:41 pm
by kermit
i take a 0.12.1 that's upgraded to 0.13, and it had:

#Use the old stylesheet logic?  It's much slower, but it works with older
#versions of CMSMS.  You'll also need this set to true if there is a module
#that uses a stylesheet callback.  Leave it as false instead you really
#need it.
$config['old_stylesheet'] = true;

after reading what it said in config.php, i figured i didn't need the old, slow stylesheet routines, so if flipped that to 'false' --

messed up stylesheet order in the template, and no matter what order i remove them & add them back to the template, they show up in the wrong order (seems to always be based on css_id in decending order).

what exactly is $config['old_stylesheet'] ? and why would i need it set to true if i have no 'non-stock' modules?

Re: $config['old_stylesheet']

Posted: Sat May 20, 2006 6:18 pm
by Ted
Ack!  I totally forgot about the ordering fix...

Basically, piratos gave me a much much faster version of stylesheet.php.  It doesn't use adodb and doesn't load a whole bunch of stuff (like modules, etc) just to display a stylesheet.  However, since it doesn't load the modules, any modules that use stylesheet hooks are basically broken (like css switcher).

Anyway, the queries in stylesheet.php need to have an order by put on them.  Can you please submit a bug so I don't forget to do this when the next version comes out?

Thanks!

Re: $config['old_stylesheet']

Posted: Sat May 20, 2006 6:37 pm
by kermit
Ted wrote: Ack!  I totally forgot about the ordering fix...

Can you please submit a bug so I don't forget to do this when the next version comes out?
submitted.