PDA

View Full Version : globalize() error in 3.6


BigJohnny
11-13-2006, 01:24 AM
im getting Call to undefined function: globalize() in one of my files.

This is an older hack im toying with, and ive read that globalize is old code, so i was wondering what is used now instead of globalize?

this is where the error lies

globalize($_POST, array('userclanid' => INT));

Adrian Schneider
11-13-2006, 01:45 AM
globalize() was removed in 3.5.x. Instead of globalize($_POST, array('userclanid' => INT));use$userclanid = $vbulletin->input->clean_gpc('p', 'userclanid', TYPE_INT);

BigJohnny
11-13-2006, 01:58 AM
thanks that worked a charm dude.

now i just have the problem of it now showing the warning message properly
this is above the "globalize" function... its what happens before you delete the clan/group.
the warning message saying "hey, are you sure you want to do this?"


print_delete_confirmation('userclan', $_REQUEST['userclanid'], 'userclan', 'kill', 'clan', 0, 'All members of this clan will be set to rouge.');