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 |
Jump to:
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
| Attachment | Size |
|---|---|
| location_views.module_1.patch | 4.52 KB |

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