Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Problem with add.cgi and modify.cgi

Quote Reply
Problem with add.cgi and modify.cgi
all of a sudden I am getting there is something wrong with the end of this code.
Code:
# Set new and pop to either 1 or 0 for templates.
($rec{'isNew'} eq 'Yes') ? ($rec{'isNew'} = 1) : (delete $rec{'isNew'});
($rec{'isPopular'} eq 'Yes') ? ($rec{'isPopular'} = 1) : (delete $rec{'isPopular'});

return &load_template ('link.html', {
detailed_url => "$db_detailed_url/$rec{'ID'}$build_extension",
%rec,
%globals
});
}

It's telling me that there is a missing operator at the end of $build_extension.

Does anyone know why this is happening.

I have done nothing to the code.

This came out of nowhere.

Jerry
Quote Reply
Re: Problem with add.cgi and modify.cgi In reply to
Change the following codes:

Code:
$rec{'ID'}$build_extension

to the following:

Code:
$rec{'ID'}.$build_extension

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Problem with add.cgi and modify.cgi In reply to
Thanks got it working before your reply, but will try this if it happens again.

Jerry
Quote Reply
Re: Problem with add.cgi and modify.cgi In reply to
build_extension does have a period in it..

$build_extension = ".html";

so the problem was something else.. probably you were in the middle of an upload..

jerry
Quote Reply
Re: Problem with add.cgi and modify.cgi In reply to
Actually I had left out a comma on one of my new routine's in templates.cfg.

Jerry