I have made this global that I want to use in a second LINKS SQL installation (ie pull info from another installation) - but I get tons of errors..
Can anyone see what I am doing wrong?
sub {
use lib \'...\';
use Links qw/$IN $DB $CFG/;
use Links::Plugins;
use GT::Date;
Links::init(\'...\');
Links::init_user();
my $user = shift;
my $loop = $DB->table(\'Links\')->select( { LinkOwner => $user } )->fetchall_arrayref({});
return { my_total => scalar @$loop, my_links => $loop };
}
http://www.ameinfo.com
Can anyone see what I am doing wrong?
sub {
use lib \'...\';
use Links qw/$IN $DB $CFG/;
use Links::Plugins;
use GT::Date;
Links::init(\'...\');
Links::init_user();
my $user = shift;
my $loop = $DB->table(\'Links\')->select( { LinkOwner => $user } )->fetchall_arrayref({});
return { my_total => scalar @$loop, my_links => $loop };
}
http://www.ameinfo.com