Quote:
Originally Posted by kh99
The global_bootstrap_complete hook is called from inside a function (line 87 of class_bootstrap.php, if you want to se where), and there is no "global $vbulletin;" in that function, so $vbulletin isn't defined at that hook. Your function works because you do have the global statement. If you put "global $vbulletin;" in your plugin code it should work.
|
That's exactly what I was thinking, as I had a problem with something similar. Wasn't certain though so didn't post it.