If an exported variable has any line breaks in it, the code comment which Features Override adds to it spans multiple lines as well, so it will not be treated as a code comment.

This leads to a fatal error when the feature is enabled, because the file does not contain valid PHP.

#1 features-override-1555942-1.patch859 bytesDavid_Rothstein


David_Rothstein’s picture

Status:Active» Needs review
new859 bytes

Something like the attached should fix it.

mpotter’s picture

Status:Needs review» Fixed

Looks good. Committed and pushed to 613bcc1.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.