I checked this on my system, the way it should look, is down around line 60:
In Reply To:
my $ip = $ENV{REMOTE_HOST} || $ENV{REMOTE_ADDR} || 'None';
$click_db=$DB->table('ClickTrack'); ## add this
my $rows = $click_db->count ( { LinkID => $id, IP => $ip, ClickType => 'Hits' } );
if (! $rows) {
Links::init_date(); ## add this
my $now = GT::Date::date_get();
$db->indexing(0);
$db->update ( { Hits => \"Hits + 1" }, { ID => $id } );
$db->indexing(1);
$click_db->insert ( { LinkID => $id, IP => $ip, ClickType => 'Hits', Created => $now } );
}
Notice, the two extra lines added.
I think the "Links::init_date();" takes the place of 'use GT::Date;', and initializes the defaults and features the way Links expects.
PUGDOGŪ PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ