The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Variable Declared in a Plugin Not Initialized in Error Pages
Hello.
I have created a plugin for global_start hook with execution order of 5. PHP Code:
The problem is that in error pages, the variable is not set(returns ""). Though it works well in other pages like home page etc. Any help is kindly appreciated. |
#2
|
|||
|
|||
I have the same problem,
Please help... |
#3
|
|||
|
|||
You don't need line 1 or line 3 in your code. Although I don't if that will fix your problem.
You may need to use the $GLOBALS array to access the variable. Try using this code where you would normally just use the variable. PHP Code:
|
#4
|
|||
|
|||
It worked! Thank you.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|