you do a variable_get in the global scope. it is: define('TELEPORT_HOTKEY', variable_get('teleport_hotkey', 'T'));.

thats a little undrupalish. please move this code to hook_init(). you don't always know that variable_get() is working when you get included.

Comments

incidentist’s picture

Assigned: Unassigned » incidentist
Status: Active » Fixed

Changed the define() to define the default key character, and use variable_get()s where TELEPORT_HOTKEY used to be.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.