er...@intechnic.lv
unread,Aug 19, 2011, 9:44:14 AM8/19/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to In-Portal Development Team
I noticed that if RegularEvents run through a cron (file tools /
cron.php), then the script runs with a constant "define ('ADMIN', 1)."
If in the adm.console start from cron is switched off, then
RegularEvents are processed on Front-end. Because of this the result
of RegularEvents may differ significantly. For example, if you want to
parse some template in the RegularEvent, then when you run via
cron.php - the template file will be matched within admin_templates,
and if on the the Front-end - in themes.
Maybe is necessary to make RegularEvents always run the same way -
either in admin or as a front-end - regardless of whether cron is
enabled or not.