Closed (fixed)
Project:
Metatag
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2013 at 23:10 UTC
Updated:
24 Jan 2014 at 05:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jantoine commentedPatch attached!
Comment #2
damienmckennaThe reason for this is to cover for when the language string is passed in as an empty string, Metatag doesn't like that so changes it to LANGUAGE_NONE.
Comment #3
jantoine commentedThis seems like a case where we should be validating the language in all cases, not just if an empty string is passed in. What happens if someone passes in a language that doesn't exist or is not enabled in Drupal?
Comment #4
damienmckennaYou have a reasonable point, we'll see what we can do about improving the language validation.
Comment #5
damienmckennaWhat do you think of this?
Comment #6
damienmckennaRerolled.
Comment #7
damienmckennaI accidentally included code from another patch in #6.
Comment #8
damienmckennaRerolled.
Comment #9
damienmckennaOops, the formatting was off.
Comment #10
damienmckennaCommitted. Thanks.