Closed (fixed)
Project:
Token
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2012 at 14:29 UTC
Updated:
26 Sep 2012 at 16:21 UTC
foreach (_token_core_supported_modules() as $module) {
if (module_exists($module)) {
$implementations[$module] = TRUE;
}
}
Sets TRUE when the module is internally supported by the token module. This parameter is supposed to be the $group parameter (either FALSE, either a string).
When module_load_include() is called by module_implements() it does this:
module_load_include('inc', $module, "$module.$group");
Which can be translated into:
module_load_include('inc', $module, "$module." . TRUE);
Which then is converted to the following filename (example for the field module):
field.1.inc
Which then cause an additional is_file() call by module_load_include() which could be avoided.
The easy fix is just replacing the TRUE by FALSE.
Comments
Comment #1
dave reidYep, you're right. This is now fixed with http://drupalcode.org/project/token.git/commit/e130ea5
Comment #2
pounardThanks! Quick and clean.