Use:
use GForum qw/$DB/;
GForum::init('/path/to/gforum/admin');
my $forum_db = $DB->table('Forum');
to start your program as this will properly initilize Gossamer Forum.
Cheers,
Alex
--
Gossamer Threads Inc.
Code:
use lib '/path/to/gforum/admin'; use GForum qw/$DB/;
GForum::init('/path/to/gforum/admin');
my $forum_db = $DB->table('Forum');
to start your program as this will properly initilize Gossamer Forum.
Cheers,
Alex
--
Gossamer Threads Inc.