Download & Extend

Performance problems when using locale.module

Project:Location Views
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

Comments

#1

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