Log in

View Full Version : StyleVars in Cron


Adrian Schneider
02-25-2006, 06:19 AM
How would I generate/access the $stylevar array during a cron job?

Thanks

Marco van Herwaarden
02-25-2006, 08:51 AM
You don't, since a cronjob is not associated with a user or a session and is ment for batch purposes only, i guess there will be no style information loaded.

You would need to load the style information yourself.

Adrian Schneider
02-25-2006, 06:27 PM
You don't, since a cronjob is not associated with a user or a session and is ment for batch purposes only, i guess there will be no style information loaded.

You would need to load the style information yourself.

I know... which function would that be? I will be able to supply the styleid needed.

Adrian Schneider
03-10-2006, 05:03 AM
If everyone cares, I just had to use similar code to what global.php has (fetches info from database, then I beleive it was fetch_styleinfo and feed it the data from the database.