In commit 30688fecf3 the template value of the mode parameter was renamed to text. Change another mention of this parameter.
30688fecf3