Log in

View Full Version : global $vbulletin VS global $vbphrase


Stachel
04-16-2006, 09:21 PM
What is the difference between what gets accomplished by adding into a function:

global $vbphrase

vs

global $vbulletin


The question is related to this thread (https://vborg.vbsupport.ru/showthread.php?t=112997), "includes and vbphrases"

Stachel

Adrian Schneider
04-16-2006, 09:57 PM
You won't be able to access any of the vBulletin variables (or ANY variables for that matter, based on that function) without $vbulletin having global scope... If you don't global the $vbphrase var, the phrases won't be available inside the function.

Stachel
04-19-2006, 08:48 AM
Thanks SirAdrian!