I've run into a bit of a problem again with this.
I'm running on the hook in cleanup.php (cron_script_cleanup). I have a phrase which I have defined as belonging to the scheduled tasks group.
If I log into the admincp and manually run the scheduled task (which runs it as my login), then the phrase works.
However, if I just leave the task to run by itself (running as unregistered) the phrase doesn't work. I tried making the phrase global, but this doesn't help either.
Obviously these scheduled tasks normally run as unregistered, so I'd like to find a solution for this.
Anyone have any ideas as to why this would be happening?
|