Closed (fixed)
Project:
RobotsTxt
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2008 at 00:10 UTC
Updated:
17 Jan 2009 at 17:30 UTC
hook_requirements() should not call t() directly, but use the value returned from get_t(); this is because when the hook is called, t() could not be available.
Comments
Comment #1
avpadernoSee hook_requirements() documentation for more informations.
Comment #2
avpadernoThe code is wrong because it uses the same code for both the installation, and the runtime phase. In the installation phase,
t()is not available.Comment #3
hass commentedThat's true. We also may need to move the hook to the .install file...
Comment #4
hass commented