Performance problems when using locale.module

smk-ka - February 14, 2007 - 01:35
Project:Location Views
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

location_views.module must not use t() in global context, as in define('LOCATION_VIEWS_UNKNOWN', t('unknown'));.
This, together with the locale.module, causes a performance degradation due to the fact the locale system isn't properly initialized then. Read more about this issue here. The patch moves the t() invocation from the global context into the functions, where the constant is accessed.
--
Stefan Kudwien
www.unleashedmind.com

AttachmentSize
location_views.module_1.patch4.52 KB

#1

geodaniel - February 19, 2007 - 14:03
Project:Location» Location Views
Version:5.x-1.x-dev» <none>

Thanks for the patch Stefan - just moving this over to the right issue queue

 
 

Drupal is a registered trademark of Dries Buytaert.