When there is not enabled either 'features[] = logo' or 'features[] = favicon' in .info file for theme it shows notice message after save configuration (admin/build/themes/settings/nameoftheme).

notice: Undefined index: logo_upload in D:\xampp\htdocs\drupal6\includes\file.inc on line 494.

Part of .info file:

; features[] = logo
features[] = favicon

Comments

anantagati’s picture

Status: Active » Needs review
StatusFileSize
new817 bytes
BartVB’s picture

Status: Needs review » Reviewed & tested by the community

Seems to work as advertised.

drewish’s picture

Status: Reviewed & tested by the community » Needs work

I think it'd be better to just drop the isset($_FILES['files']) and just go with isset($_FILES['files']['name'][$source])

BartVB’s picture

Version: 7.x-dev » 6.x-dev
StatusFileSize
new668 bytes

isset($_FILES['files']) is indeed rather redundant :)

Behold my first Drupal patch ever:

BartVB’s picture

Status: Needs work » Needs review

Forgot to change the status :\ First coffee, then work :D

Anonymous’s picture

Version: 6.x-dev » 7.x-dev
Status: Needs review » Needs work

You need to upload the patch again, it only contains a 401 error. Also, please roll the patch to HEAD for first consideration.

BartVB’s picture

Version: 6.x-dev » 7.x-dev
Status: Needs work » Needs review

Ok, fixed the attachement in #4, sorry about that! Also rerolled against HEAD.

cburschka’s picture

I'm afraid I don't understand the problem. garland.info includes no features[] setting at all, and it does not output any notices when saving the options. Is this something that only affects custom themes?

Edit: Ah, got it. It only happens exactly one of the lines is set, and the other is not.

cburschka’s picture

Status: Needs review » Reviewed & tested by the community

Tested and works as advertised. RTBC, unless you want a second test.

Anonymous’s picture

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

drewish’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new1.03 KB

rerolled using CVS rather than git. restoring last status.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

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