$config['old_stylesheet']

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

$config['old_stylesheet']

Post 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?
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: $config['old_stylesheet']

Post 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!
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: $config['old_stylesheet']

Post 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.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Locked

Return to “[locked] Quality Assurance”