The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
I discovered once I began publishing products that even though I might not need to globalize variables on my site(s), other folks would have issues because it wasn't available on theirs. I don't know why this is.
So as insurance, I now tend to globalize $vbulletin, $vbphrase, $db whenever I use them in any plugin just to make sure this won't be an issue for anyone who installs my products. |
Благодарность от: | ||
Dr.CustUmz |
#12
|
||||
|
||||
You dont need to globalize it, and its bad practice to do so.
What you need to do is use the correct variable, which in a lot of core class functions is $this->registry, not $vbulletin. (e.g. $this->registry->options['xxx'], not $vbulletin->options['xxx']). |
3 благодарности(ей) от: | ||
Dr.CustUmz, MarkFL, TheLastSuperman |
#13
|
||||
|
||||
-_- facepalm, seeing this now I remember, Ive used that before. Thanks Paul =)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|