Right, the hook is probably in a loop...
Try this on line 31:
<hook id="in_start"><![CDATA[
function words($string, $words)
{
return implode(" ", array_slice(explode(' ', $string), 0, $words)) . '...';
}
]]></hook>
and delete
function words($string, $words)
{
return implode(" ", array_slice(explode(' ', $string), 0, $words)) . '...';
}
in line 32