move define()

moshe weitzman - July 28, 2008 - 15:12
Project:Teleport
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:incidentist
Status:closed
Description

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.

#1

incidentist - August 1, 2008 - 00:02
Assigned to:Anonymous» incidentist
Status:active» fixed

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

#2

Anonymous (not verified) - August 15, 2008 - 00:12
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.