Hi,
i'm having a really weird problem here :/
require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
works fine (except it obviously doesn't include $CFG or $USER).
However, if I use;
require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
The error_log shows;
If I add in print $IN->header();, then it just outputs a blank page (I'm guessing it was trying to output something.... but I can't see where/why :/).
Any ideas are MUCH appreciated. BTW, this is a freebie plugin for LSQL =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
i'm having a really weird problem here :/
Code:
# $IN = { %$IN, %$CFG, %$USER }; require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
works fine (except it obviously doesn't include $CFG or $USER).
However, if I use;
Code:
$IN = { %$IN, %$CFG, %$USER }; require GT::Template;
my $message = GT::Template->parse('add-email-pre.txt',
$IN,
{ compress => 0, root => "$CFG->{admin_root_path}/templates/$CFG->{build_default_tpl}"});
The error_log shows;
Quote:
[Tue Feb 15 08:51:39 2005] [error] [client 81.153.51.17] Premature end of script headers: /var/home/ultranerds/ultranerds-dev.com/cgi-bin/add.cgiIf I add in print $IN->header();, then it just outputs a blank page (I'm guessing it was trying to output something.... but I can't see where/why :/).
Any ideas are MUCH appreciated. BTW, this is a freebie plugin for LSQL =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!