Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[BUG] PREFIX not available when installing plugins?

Quote Reply
[BUG] PREFIX not available when installing plugins?
Hi,

I was just trying to do the following in Install.pm for a plugin, to check if a table exists:

Code:
if (-e "$CFG->{admin_root_path}/defs/".$DB->{connect}->{PREFIX} ."ReviewLinkSession.def") {

..but it seems $DB is coming up as undef . Is there a reason for this?

BTW, I know we can use $DB->prefix to get the prefix - but I was just wondering why it didn't exist here Smile

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!
Subject Author Views Date
Thread [BUG] PREFIX not available when installing plugins? Andy 2577 Nov 4, 2011, 3:26 AM
Thread Re: [Andy] [BUG] PREFIX not available when installing plugins?
brewt 2404 Nov 4, 2011, 2:44 PM
Post Re: [brewt] [BUG] PREFIX not available when installing plugins?
Andy 2401 Nov 5, 2011, 1:59 AM